Type alias HandlerRegistry
HandlerRegistry: {
has(id: string): boolean;
invoke(id: string, ...args: any[]): any;
keys(): string[];
register(id: string, handler: AnyFunction<any[], any>): void;
}
Type declaration
-
has:function
- has(id: string): boolean
-
Returns boolean
-
invoke:function
- invoke(id: string, ...args: any[]): any
-
Parameters
-
id: string
-
Rest
...args: any[]
Returns any
-
keys:function
- keys(): string[]
-
Returns string[]
-
register:function
- register(id: string, handler: AnyFunction<any[], any>): void
-
Parameters
-
id: string
-
handler: AnyFunction<any[], any>
Returns void
invoke a registered command.