- applyMethodCall<O, K, FN>(node, methodName, ...args): FN extends AnyFunction
? ReturnType<FN>
: never Type Parameters
- O extends object
- K extends string | number | symbol
- FN
Parameters
- node: O
- methodName: K
Rest
...args: FN extends AnyFunction
? Parameters<FN<FN>>
: never
Returns FN extends AnyFunction
? ReturnType<FN>
: never
Calls an object method wrapped in an action.