Class MethodInvoker<I, O>
Constructors
constructor
- new MethodInvoker<I, O>(func: SyncFunction<any, any> | AsyncFunction<any, any>, ...args: I[]): MethodInvoker<I, O>
-
Type parameters
Parameters
-
func: SyncFunction<any, any> | AsyncFunction<any, any>
-
Rest ...args: I[]
Methods
safeInvokeAsync
- safeInvokeAsync(): Promise<Undefinable<O>>
-
Returns Promise<Undefinable<O>>
safeInvokeSync
- safeInvokeSync(): Undefinable<O>
thisArg
- thisArg(thisArgument: Record<string, unknown>): MethodInvoker<I, O>
-
Parameters
-
thisArgument: Record<string, unknown>