Skip to content

Commit

Permalink
[chore] test createEventDispatcher typing in package tests (#1955)
Browse files Browse the repository at this point in the history
  • Loading branch information
dummdidumm authored Jul 19, 2021
1 parent 4dd65f1 commit ae3cec6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ declare const __propDef: {
astring: string;
};
events: {
event: CustomEvent<any>;
event: CustomEvent<boolean>;
} & {
[evt: string]: CustomEvent<any>;
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import { createEventDispatcher } from 'svelte';
export const astring: string;
const dispatch = createEventDispatcher();
const dispatch = createEventDispatcher<{ event: boolean }>();
dispatch('event', true);
</script>

Expand Down

0 comments on commit ae3cec6

Please sign in to comment.