From 1b882cae1bfac6eb75331411bc0407310e371328 Mon Sep 17 00:00:00 2001 From: kodemon Date: Fri, 25 Apr 2025 22:47:07 +0000 Subject: [PATCH] fix: slow types --- libraries/event.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libraries/event.ts b/libraries/event.ts index 5087af9..7068116 100644 --- a/libraries/event.ts +++ b/libraries/event.ts @@ -99,7 +99,9 @@ export class Event { } } -export const event = { +export const event: { + type(type: TType): Event<{ type: TType }>; +} = { type(type: TType): Event<{ type: TType }> { return new Event<{ type: TType }>({ type }); },