type-challenges icon indicating copy to clipboard operation
type-challenges copied to clipboard

3312 - Parameters

Open LuciusXy opened this issue 2 years ago • 0 comments

type MyParameters<T extends (...args: any[]) => any> = T extends (...args: infer R) => any ? { [K in keyof R]: R[K] } : never

LuciusXy avatar Dec 22 '23 12:12 LuciusXy