Extract a function’s parameter tuple.
Section: Common Utility Type Recipes
Use `Parameters<T>`
typescript
typescript
type Fn = (id: string, active: boolean) => void;
type FnArgs = Parameters<Fn>; // [id: string, active: boolean]Explanation
Great for wrappers, event helpers, and higher-order functions.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Common Utility Type Recipes
Use `InstanceType<T>`
Get the instance type from a class constructor.
Paginated API response type
Model paginated collections with generics.