add type info for createEventDispatcher - fixes #3877

pull/7738/head
Richard Harris 6 years ago
parent db4b523577
commit 37bd75ad2d

@ -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