- Preparing search index...
- The search index is not available
TESSA Web API
Interface BindingOnSyntax<T>
Methods
onActivation
- onActivation(fn: ((context: Context, injectable: T) => T | Promise<T>)): BindingWhenSyntax<T>
-
Parameters
-
fn: ((context: Context, injectable: T) => T | Promise<T>)
-
- (context: Context, injectable: T): T | Promise<T>
-
Returns T | Promise<T>
onDeactivation
- onDeactivation(fn: ((injectable: T) => void | Promise<void>)): BindingWhenSyntax<T>
-
Parameters
-
fn: ((injectable: T) => void | Promise<void>)
-
- (injectable: T): void | Promise<void>
-
Returns void | Promise<void>