UNPKG

@progress/telerik-common-report-viewer

Version:

Common code for Progress® Telerik® Report Viewer

29 lines (28 loc) 1.19 kB
/*! * await-event-emitter - v2.0.2 - 25/5/2023 * https://github.com/imcuttle/node-await-event-emitter/tree/master * * Copyright (c) imcuttle <imcuttle@163.com> * Licensed under the MIT license. * https://github.com/imcuttle/node-await-event-emitter/blob/master/License */ declare type SymbolKey = string | any; declare class AwaitEventEmitter { _events: Record<any | SymbolKey, Array<{ fn: Function; }>>; addListener(type: SymbolKey, fn: Function): this; on(type: SymbolKey, fn: Function): this; prependListener(type: SymbolKey, fn: Function): this; prepend(type: SymbolKey, fn: Function): this; prependOnceListener(type: SymbolKey, fn: Function): this; prependOnce(type: SymbolKey, fn: Function): this; listeners(type: SymbolKey): Function[]; once(type: SymbolKey, fn: Function): this; removeAllListeners(): void; off(type: SymbolKey, nullOrFn?: Function): boolean; removeListener(type: SymbolKey, nullOrFn?: Function): boolean; emit(type: SymbolKey, ...args: unknown[]): Promise<boolean>; emitSync(type: SymbolKey, ...args: unknown[]): boolean; } export default AwaitEventEmitter;