summaryrefslogtreecommitdiff
path: root/source/globals.d.ts
diff options
context:
space:
mode:
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;
-}