UNPKG

@hocuspocus/common

Version:

shared code for multiple Hocuspocus packages

10 lines (9 loc) 272 B
export default class EventEmitter { callbacks: { [key: string]: Function[]; }; on(event: string, fn: Function): this; protected emit(event: string, ...args: any): this; off(event: string, fn?: Function): this; removeAllListeners(): void; }