add type info for createEventDispatcher - fixes #3877

pull/3890/head
Richard Harris 5 years ago
parent ad2aac509d
commit 80bfcea92a

@ -30,7 +30,7 @@ export function onDestroy(fn) {
export function createEventDispatcher() {
const component = get_current_component();
return (type, detail) => {
return (type: string, detail?: any) => {
const callbacks = component.$$.callbacks[type];
if (callbacks) {

Loading…
Cancel
Save