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