mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-14 18:01:06 +00:00
fix(types): dispatched events without a detail value should be null
(#1124)
Currently, dispatched events without `e.detail` have a type of `any`. We can be more specific as a `CustomEvent` detail value is `null`.
This commit is contained in:
parent
2f3cff2942
commit
714f47a635
19 changed files with 97 additions and 93 deletions
2
types/MultiSelect/MultiSelect.svelte.d.ts
vendored
2
types/MultiSelect/MultiSelect.svelte.d.ts
vendored
|
@ -228,7 +228,7 @@ export default class MultiSelect extends SvelteComponentTyped<
|
|||
selected: MultiSelectItem[];
|
||||
unselected: MultiSelectItem[];
|
||||
}>;
|
||||
clear: CustomEvent<any>;
|
||||
clear: CustomEvent<null>;
|
||||
keydown: WindowEventMap["keydown"];
|
||||
keyup: WindowEventMap["keyup"];
|
||||
focus: WindowEventMap["focus"];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue