The Parameters
utility type in Typescript allows for the extraction of parameter types of a function and places them in an array.
Example
type User = (u: {id: number, username: string}) => void;
const user: Parameters<User>[0] ={
id: 145678,
username: "aadam"
}; //(property) 0: {
id: number;
username: string;
} (u)