MyReturnType

Medium

Implement 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.