TypeScript·
3312 - Parameters
- #Type Challenges
- #TypeScript
질문
내장 제네릭 Parameters<T>를 이를 사용하지 않고 구현하세요.
예시:
1const foo = (arg1: string, arg2: number): void => {}23type FunctionParamsType = MyParameters<typeof foo> // [arg1: string, arg2: number]45