Extract parameter types from a function.
Function type to extract from
Retrieves all parameter types as a tuple in declaration order.
type Fn = ( a: string, b: number, c: boolean ) => void;type Params = Parameters< Fn >;// [ a: string, b: number, c: boolean ] Copy
type Fn = ( a: string, b: number, c: boolean ) => void;type Params = Parameters< Fn >;// [ a: string, b: number, c: boolean ]
Extract parameter types from a function.