Function: getParametersFunctionArgumentFromFunctionType()
function getParametersFunctionArgumentFromFunctionType(
context: TypedRuleContext,
node: Readonly<TSESTree.TSFunctionType>
): Readonly<TypeNode> | null;
Defined in: _internal/function-type-reference-patterns.ts:74
Match direct (...args: Parameters<Function>) => ... wrappers.
Parametersโ
contextโ
Rule context used to resolve built-in type names.
nodeโ
Readonly<TSESTree.TSFunctionType>
Function type node to inspect.
Returnsโ
| Readonly<TypeNode>
| null
The wrapped function type argument when the function has exactly one
rest parameter typed as Parameters<Function>; otherwise null.