Methods
active
- active(): Context
bind
- bind<T>(context?, target): T
Returns T
disable
- disable(): this
Returns this
enable
- enable(): this
Returns this
with
- with<A, F>(context, fn, thisArg?, ...args): ReturnType<F>
Type Parameters
- A extends unknown[]
- F extends ((...args) => ReturnType<F>)
Parameters
- context: Context
- fn: F
Optional thisArg: ThisParameterType<F>Rest ...args: A
Returns ReturnType<F>
Get the current active context