vim-webgl-component
Version:
A demonstration app built on top of the vim-webgl-viewer
24 lines (23 loc) • 762 B
TypeScript
import { EventDispatcher } from "./EventDispatcher";
/**
* Similar to EventList, but instead of TArgs, a map of event names ang argument types is provided with TArgsMap.
*/
export declare class NonUniformEventList<TSender, TArgsMap extends {
[event: string]: any;
}> {
private _events;
/**
* Gets the dispatcher associated with the name.
* @param name The name of the event.
*/
get<K extends keyof TArgsMap>(name: K): EventDispatcher<TSender, TArgsMap[K]>;
/**
* Removes the dispatcher associated with the name.
* @param name The name of the event.
*/
remove(name: string): void;
/**
* Creates a new dispatcher instance.
*/
protected createDispatcher<T>(): EventDispatcher<TSender, T>;
}