TeaSpeak-Client/imports/shared-app/connectionlog/DispatcherNotifications.d.ts

6 lines
449 B
TypeScript
Raw Normal View History

2021-02-20 12:55:36 -05:00
import { EventType, TypeInfo } from "tc-shared/connectionlog/Definitions";
export declare type DispatcherLog<T extends keyof TypeInfo> = (data: TypeInfo[T], handlerId: string, eventType: T) => void;
export declare function findNotificationDispatcher<T extends keyof TypeInfo>(type: T): DispatcherLog<T>;
export declare function getRegisteredNotificationDispatchers(): TypeInfo[];
export declare function isNotificationEnabled(type: EventType): any;