vim-webgl-component
Version:
A demonstration app built on top of the vim-webgl-viewer
24 lines (23 loc) • 765 B
TypeScript
import { SimpleEventDispatcher } from "./SimpleEventDispatcher";
/**
* Similar to EventList, but instead of TArgs, a map of event names ang argument types is provided with TArgsMap.
*/
export declare class NonUniformSimpleEventList<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): SimpleEventDispatcher<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>(): SimpleEventDispatcher<T>;
}