TypeScript · Generics and utility types
Parameters<T>
A tuple of a function’s parameter types.
Syntax
Parameters<typeof fn>Example
Example
function move(x: number, y: number) {}
type Args = Parameters<typeof move>;More in this group
Learn this in the course
Reference pages are the quick answer. The course explains the why, shows the full example and ends with a challenge.