`Parameters<T>`
- 함수의 타입을 넘겨주면 함수의 인자의 타입을 리턴한다.
- [참조](https://www.typescriptlang.org/docs/handbook/utility-types.html#parameterstype)
---
## Example
```typescript
const makeQuery = (
url: string,
opts?: {
method?: string;
headers?: {
[key: string]: string;
};
body?: string;
},
) => {};
type MakeQueryParameters = Parameters<typeof makeQuery>;
type tests = [
Expect<
Equal<
MakeQueryParameters,
[
url: string,
opts?: {
method?: string;
headers?: {
[key: string]: string;
};
body?: string;
},
]
>
>,
];
```
---
참조 강의: https://inf.run/FVDi