diff --git a/src/types.ts b/src/types.ts index d990d9a..4cc45c0 100644 --- a/src/types.ts +++ b/src/types.ts @@ -8,7 +8,7 @@ export type Handler = (data: T) => void; export type HandlerCallback = Handler; export interface Pubsub = {}> { - data: Map; + data: Map[]>; on<_T extends keyof T>(key: _T, callback: HandlerCallback): void; to<_T extends keyof T>(key: _T, callback: T[_T]): void; }