MediumApplyTypeScriptMultiple Choice
What does ReturnType<typeof fn> evaluate to if fn is () => Promise<User[]>?
Apply — Tests ability to use knowledge in practical scenarios.
Answer Options
AUser[]
BPromise<User[]>
CUser
DPromise<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).