UNPKG

aes70

Version:

A controller library for the AES70 protocol.

32 lines (26 loc) 548 B
/** * Basic event handling class. */ export class Events { constructor(); /** * Emit an event. */ emit(name: string, ...args: unknown[]): void; /** * Subscribe to an event. */ on(name: string, cb: (...args) => void): void; /** * Subscribe to an event. */ addEventListener(name: string, cb: (...args) => void): void; /** * Unsubscribe from an event. */ removeEventListener(name: string, cb: (...args) => void): void; /** * Removes all event listeners. */ removeAllEventListeners(): void; }