From cd24b6a77bc2516300d26e2a34576f9c3dc11c45 Mon Sep 17 00:00:00 2001 From: Ivan Hofer Date: Wed, 22 Feb 2023 20:00:03 +0100 Subject: [PATCH] remove test code --- src/runtime/internal/lifecycle.ts | 10 ---------- 1 file changed, 10 deletions(-) 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