diff --git a/lib/types/nope/nopeCommunication.interface.ts b/lib/types/nope/nopeCommunication.interface.ts index 8ea5531..2affa91 100644 --- a/lib/types/nope/nopeCommunication.interface.ts +++ b/lib/types/nope/nopeCommunication.interface.ts @@ -11,6 +11,20 @@ import { IDispatcherInfo } from "./nopeDispatcher.interface"; import { INopeModuleDescription } from "./nopeModule.interface"; import { INopeObservable } from "./nopeObservable.interface"; +/** + * Default Emitter, which will be used + * + * @export + * @interface IEmitter + */ +export interface IEmitter { + on(event: string | symbol, listener: (...args: any[]) => void): this; + off(event: string | symbol, listener: (...args: any[]) => void): this; + emit(event: string | symbol, ...args: any[]): boolean; + getMaxListeners?: () => number; + setMaxListeners?: (n: number) => void; +} + /** * A Layer to communicate. *