Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumTypeScripthand-rolled utility typesSingle-choice MCQ

What does `Done` resolve to with this hand-rolled `Awaited`?

type MyAwaited<T> = T extends Promise<infer U> ? MyAwaited<U> : T; type Done = MyAwaited<Promise<Promise<number>>>;