UNPKG

@hocuspocus/extension-database

Version:

a generic Hocuspocus persistence driver for the database

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; }