Type alias Parameters<T>

Parameters<T>: T extends ((...args) => any)
    ? P
    : never

Obtain the parameters of a function type in a tuple

Type Parameters

  • T extends ((...args) => any)