fix(tooltip): type Tooltip open, close events (#1058)

This commit is contained in:
metonym 2022-02-01 07:20:43 -08:00 committed by GitHub
commit 504cf09dc8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 22 additions and 6 deletions

View file

@ -91,6 +91,11 @@ export interface TooltipProps
export default class Tooltip extends SvelteComponentTyped<
TooltipProps,
{ click: WindowEventMap["click"]; mousedown: WindowEventMap["mousedown"] },
{
open: CustomEvent<any>;
close: CustomEvent<any>;
click: WindowEventMap["click"];
mousedown: WindowEventMap["mousedown"];
},
{ default: {}; icon: {}; triggerText: {} }
> {}