summaryrefslogtreecommitdiff
path: root/source/globals.d.ts
diff options
context:
space:
mode:
authorGravatar Federico Brigante <github@bfred.it> 2019-08-31 01:26:28 +0700
committerGravatar GitHub <noreply@github.com> 2019-08-31 01:26:28 +0700
commit8d0393542bd712d7bb7f93874118dedd07b62c7b (patch)
tree0a139195466ba76bf5abdd6cbb979e55dcf3322a /source/globals.d.ts
parent0ca864af6da9cac9f503e4abd0c58b60fbe1abc6 (diff)
downloadrefined-github-8d0393542bd712d7bb7f93874118dedd07b62c7b.tar.gz
refined-github-8d0393542bd712d7bb7f93874118dedd07b62c7b.tar.zst
refined-github-8d0393542bd712d7bb7f93874118dedd07b62c7b.zip
Update dependencies and lint (#2391)19.8.31
Diffstat (limited to 'source/globals.d.ts')
-rw-r--r--source/globals.d.ts19
1 files changed, 7 insertions, 12 deletions
diff --git a/source/globals.d.ts b/source/globals.d.ts
index 6d891eb6..bd6a5446 100644
--- a/source/globals.d.ts
+++ b/source/globals.d.ts
@@ -1,3 +1,5 @@
+// TODO: Drop some definitions when their related bugs are resolved
+
type AnyObject = Record<string, any>;
type AsyncVoidFunction = () => Promise<void>;
@@ -17,7 +19,7 @@ interface Window {
content: GlobalFetch;
}
-// TODO: Drop after https://github.com/sindresorhus/p-memoize/issues/9
+// Drop after https://github.com/sindresorhus/p-memoize/issues/9
declare module 'mem' {
function mem<T = VoidFunction>(fn: T, options?: AnyObject): T;
export = mem;
@@ -25,8 +27,7 @@ declare module 'mem' {
declare module 'size-plugin';
-// TODO: Drop linkify-* types when Firefox adds RegEx lookbehind support
-// https://github.com/sindresorhus/refined-github/pull/1936#discussion_r276515991
+// Drop when Firefox adds RegEx lookbehind support https://github.com/sindresorhus/refined-github/pull/1936#discussion_r276515991
declare module 'linkify-urls' {
type Options = {
user: string;
@@ -44,6 +45,7 @@ declare module 'linkify-urls' {
export = linkifyUrls;
}
+// Drop when Firefox adds RegEx lookbehind support https://github.com/sindresorhus/refined-github/pull/1936#discussion_r276515991
declare module 'linkify-issues' {
type Options = {
user: string;
@@ -64,7 +66,6 @@ declare module 'linkify-issues' {
// Custom UI events specific to RGH
interface GlobalEventHandlersEventMap {
'details:toggled': CustomEvent;
- 'focusin': UIEvent; // Drop when it reaches W3C Recommendation https://github.com/Microsoft/TSJS-lib-generator/pull/369
'rgh:view-markdown-source': CustomEvent;
'rgh:view-markdown-rendered': CustomEvent;
'filterable:change': CustomEvent;
@@ -84,18 +85,12 @@ declare namespace JSX {
}
}
-// TODO: Drop when this bug is fixed
-// https://github.com/Microsoft/TypeScript/issues/30928
+// Drop after https://github.com/Microsoft/TypeScript/issues/30928
interface NamedNodeMap {
[key: string]: Attr;
}
-// https://github.com/Microsoft/TypeScript/issues/30928
+// Drop after https://github.com/Microsoft/TypeScript/issues/30928
interface HTMLFormControlsCollection {
[key: string]: HTMLInputElement | HTMLTextAreaElement | HTMLButtonElement;
}
-
-// TODO: Drop when this appears on npm https://github.com/microsoft/TypeScript/blob/340f81035ff1d753e6a1f0fedc2323d169c86cc6/src/lib/dom.generated.d.ts#L9686
-interface KeyboardEvent {
- readonly isComposing: boolean;
-}