fix(types): narrow dispatched events without detail to use null instead of any (#1295)

* chore(deps-dev): upgrade sveld to v0.15.2

* Run "yarn build:docs"
This commit is contained in:
metonym 2022-05-13 09:56:21 -07:00 committed by GitHub
commit 88d5152343
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 112 additions and 83 deletions

View file

@ -42,7 +42,7 @@ export default class ContextMenu extends SvelteComponentTyped<
open: CustomEvent<HTMLElement>;
click: WindowEventMap["click"];
keydown: WindowEventMap["keydown"];
close: CustomEvent<any>;
close: CustomEvent<null>;
},
{ default: {} }
> {}

View file

@ -75,7 +75,7 @@ export default class ContextMenuOption extends SvelteComponentTyped<
keydown: WindowEventMap["keydown"];
mouseenter: WindowEventMap["mouseenter"];
mouseleave: WindowEventMap["mouseleave"];
click: CustomEvent<any>;
click: CustomEvent<null>;
},
{ default: {}; icon: {}; labelText: {}; shortcutText: {} }
> {}