예시
type TestParams = Parameters<(a: string, b: number) => void> // [string, number]
type SecondParam = TestParams[1] // number
출처
https://stackoverflow.com/questions/51851677/how-to-get-argument-types-from-function-in-typescript
type TestParams = Parameters<(a: string, b: number) => void> // [string, number]
type SecondParam = TestParams[1] // number
https://stackoverflow.com/questions/51851677/how-to-get-argument-types-from-function-in-typescript