mirror of
https://github.com/robonen/tools.git
synced 2026-03-20 19:04:46 +00:00
refactor(packages/stdlib): add symbol in EventsRecord
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
export type Subscriber = (...args: any[]) => void;
|
||||
export type EventsRecord = Record<string, Subscriber>;
|
||||
export type EventsRecord = Record<string | symbol, Subscriber>;
|
||||
|
||||
/**
|
||||
* Simple PubSub implementation
|
||||
|
||||
Reference in New Issue
Block a user