MyReturnType
MediumImplement MyReturnType which extracts the return type of a function.
TypeScript•UTF-8
Run your code to see results.
Click the Run button above
MyReturnType
MediumImplement MyReturnType which extracts the return type of a function.
Examples:
Input 1: type Result = MyReturnType<typeof getUser>
Output 1: { id: number; name: string }
Output
Run your code to see results.