diff --git a/src/runtime/internal/lifecycle.ts b/src/runtime/internal/lifecycle.ts index aad6574384..5e34da05e3 100644 --- a/src/runtime/internal/lifecycle.ts +++ b/src/runtime/internal/lifecycle.ts @@ -111,16 +111,6 @@ export function createEventDispatcher = any }) as EventDispatcher; } -// no type restrictions -const dispatch1 = createEventDispatcher() -dispatch1('click') -dispatch1('something') -dispatch1('something', true) - -const dispatch2 = createEventDispatcher<{ click: never }>() -dispatch2('click') -dispatch2('click', true) - /** * Associates an arbitrary `context` object with the current component and the specified `key` * and returns that object. The context is then available to children of the component