dingxyang/type-challenges

3312 - Parameters

dingxyang opened this issue · 0 comments

type MyParameters<T extends (...args: any[]) => any> = T extends (...args: infer P) => any ? P : never;