fix(multi-select): type dispatched select event

This commit is contained in:
Eric Y Liu 2021-03-12 15:51:29 -08:00
commit df63254c79
5 changed files with 24 additions and 10 deletions

View file

@ -179,11 +179,15 @@ export interface MultiSelectProps
export default class MultiSelect extends SvelteComponentTyped<
MultiSelectProps,
{
select: CustomEvent<{
selectedIds: string[];
selected: MultiSelectItem[];
unselected: MultiSelectItem[];
}>;
clear: WindowEventMap["clear"];
keydown: WindowEventMap["keydown"];
focus: WindowEventMap["focus"];
blur: WindowEventMap["blur"];
select: CustomEvent<any>;
},
{}
> {}