- MethodFunctor<T extends {
[P in string | number | symbol]: ((..._: any[]) => any)
}, TMethod extends string | number | symbol, TParams extends any[]>(_ctor: ((..._: any[]) => T | (new (..._: any[]) => T)), method: TMethod, ...args: TParams): MethodFunctor<T, ReturnType<T[TMethod]>> Type Parameters
- T extends {
[P in string | number | symbol]: ((..._: any[]) => any)
} - TMethod extends string | number | symbol
- TParams extends any[]
Parameters
- _ctor: ((..._: any[]) => T | (new (..._: any[]) => T))
- (..._: any[]): T | (new (..._: any[]) => T)
Returns T | (new (..._: any[]) => T)
- method: TMethod
Rest
...args: TParams