dingxyang opened this issue 2 years ago · 0 comments
type MyReturnType<T extends (...args : any) => any> = T extends (...args : any) => infer R ? R : any;