- Preparing search index...
- The search index is not available
Deepkit
Constructors
constructor
- new EventToken<T>(id: string, event?: ClassType<T>): EventToken<T>
-
Parameters
-
id: string
-
Optional
event: ClassType<T>
Methods
listen
- listen(callback: ((event: T, ...args: any[]) => void), order?: number, module?: InjectorModule<any, InjectorModule<any, any>>): EventListener<T>
-
Parameters
-
callback: ((event: T, ...args: any[]) => void)
-
- (event: T, ...args: any[]): void
-
Parameters
-
event: T
-
Rest
...args: any[]
Returns void
-
order: number = 0
-
Optional
module: InjectorModule<any, InjectorModule<any, any>>
This is only to get easy the event-type. In reality this property is undefined. e.g.
onHttpRequest(event: typeof onHttpRequest.event) {