UNPKG

onix-core

Version:
25 lines (24 loc) 818 B
import { IEventArgs, IEventArgs1 } from './IEventArgs'; import { IEventHandler, IEventHandler1 } from './IEventHandler'; export declare class EventHandler implements IEventHandler { Callback: (args: IEventArgs) => void; Context: any; /** * constructor */ constructor(Callback: (args: IEventArgs) => void, Context: any); /** * Calls the method for handling events in the context of the called object. */ invoke(args: IEventArgs): void; } export declare class EventHandler1<T> extends EventHandler implements IEventHandler1<T> { /** * constructor */ constructor(Callback: (args: IEventArgs1<T>) => void, Context: any); /** * Calls the method for handling events in the context of the called object. */ invoke(args: IEventArgs1<T>): void; }