From ed94f6dcd24b7a36d7bc9626a466fb757aa17d63 Mon Sep 17 00:00:00 2001 From: WolverinDEV Date: Fri, 7 Aug 2020 22:32:30 +0200 Subject: [PATCH] Added default wildcard types --- shared/js/events.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shared/js/events.ts b/shared/js/events.ts index 41d47985..4821995b 100644 --- a/shared/js/events.ts +++ b/shared/js/events.ts @@ -21,13 +21,13 @@ export class SingletonEvent implements Event() : SingletonEvents[T] { return; } } -export interface EventReceiver { +export interface EventReceiver { fire(event_type: T, data?: Events[T], overrideTypeKey?: boolean); fire_async(event_type: T, data?: Events[T], callback?: () => void); } const event_annotation_key = guid(); -export class Registry implements EventReceiver { +export class Registry implements EventReceiver { private readonly registryUuid; private handler: {[key: string]: ((event) => void)[]} = {};