@boost/event
Version:
An event system with multiple emitter patterns.
10 lines • 472 B
TypeScript
import { BaseEvent } from './BaseEvent';
export declare class BailEvent<Args extends unknown[], Scope extends string = string> extends BaseEvent<boolean | void, Args, Scope> {
/**
* Synchronously execute listeners with the defined arguments.
* If a listener returns `false`, the loop with be aborted early,
* and the emitter will return `true` (for bailed).
*/
emit(args: Args, scope?: Scope): boolean;
}
//# sourceMappingURL=BailEvent.d.ts.map