diff options
Diffstat (limited to 'source/globals.d.ts')
-rw-r--r-- | source/globals.d.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/globals.d.ts b/source/globals.d.ts index e00f9431..76117070 100644 --- a/source/globals.d.ts +++ b/source/globals.d.ts @@ -1,7 +1,6 @@ /* eslint-disable @typescript-eslint/no-explicit-any */ // TODO: Drop some definitions when their related bugs are resolved -// TODO: Improve JSX types for event listeners so we can use `MouseEvent` instead of `React.MouseEvent`, which is incompatible with regular `addEventListeners` calls type AnyObject = Record<string, any>; type AsyncVoidFunction = () => Promise<void>; @@ -36,6 +35,7 @@ interface GlobalEventHandlersEventMap { 'rgh:view-markdown-source': CustomEvent; 'rgh:view-markdown-rendered': CustomEvent; 'filterable:change': CustomEvent; + 'page:loaded': CustomEvent; } declare namespace JSX { |