ste-promise-events
Version:
Add the power of Events to your projects. They are styled after .Net using a sender and arguments. Handlers can be promises.
17 lines (16 loc) • 560 B
TypeScript
import { EventListBase } from "ste-core";
import { PromiseEventDispatcher } from "./PromiseEventDispatcher";
/**
* Storage class for multiple events that are accessible by name.
* Events dispatchers are automatically created.
*/
export declare class PromiseEventList<TSender, TArgs> extends EventListBase<PromiseEventDispatcher<TSender, TArgs>> {
/**
* Creates a new EventList instance.
*/
constructor();
/**
* Creates a new dispatcher instance.
*/
protected createDispatcher(): PromiseEventDispatcher<TSender, TArgs>;
}