UNPKG

ste-promise-simple-events

Version:

Add the power of Simple Events to your projects. Every event has an argument with its data. Every handler can be a promise.

17 lines (16 loc) 576 B
import { EventListBase } from "ste-core"; import { PromiseSimpleEventDispatcher } from "./PromiseSimpleEventDispatcher"; /** * Storage class for multiple simple events that are accessible by name. * Events dispatchers are automatically created. */ export declare class PromiseSimpleEventList<TArgs> extends EventListBase<PromiseSimpleEventDispatcher<TArgs>> { /** * Creates a new SimpleEventList instance. */ constructor(); /** * Creates a new dispatcher instance. */ protected createDispatcher(): PromiseSimpleEventDispatcher<TArgs>; }