Skip to main content

Function: getParametersFunctionArgumentFromFunctionType()

getParametersFunctionArgumentFromFunctionType(node: Readonly<TSESTree.TSFunctionType>): Readonly<TypeNode> | null

Defined in: _internal/function-type-reference-patterns.ts:71

Match direct (...args: Parameters<Function>) => ... wrappers.

Parametersโ€‹

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.