Skip to main content
✏️ Code CompletionTS TypeScript Hard+35 XP

Infer in Conditional

Complete the conditional type to extract the return type.

✏️ Fill in the blank
type ReturnType<T> = T extends (...args: any[]) => ___ R ? R : never;

✏️ Type the missing code: