Skip to content
Medium Apply TypeScript Multiple Choice

What does ReturnType<typeof fn> evaluate to if fn is () => Promise<User[]>?

Apply — Tests ability to use knowledge in practical scenarios.

Answer Options

A User[]
B Promise<User[]>
C User
D Promise<User>

Want to see the correct answer?

Get the answer with a detailed explanation, plus practice 32+ more TypeScript questions with adaptive quizzes and timed interviews.

See the Answer on Guru Sishya →

This question is from the TypeScript topic (Programming Languages).

More TypeScript Questions