* Subscribe to an event * @param event - The event name * @param cb - The callback
(event: T, cb: ClackEvents<TValue>[T])
| 91 | * @param cb - The callback |
| 92 | */ |
| 93 | public on<T extends keyof ClackEvents<TValue>>(event: T, cb: ClackEvents<TValue>[T]) { |
| 94 | this.setSubscriber(event, { cb }); |
| 95 | } |
| 96 | |
| 97 | /** |
| 98 | * Subscribe to an event once |
no test coverage detected