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