Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumTypeScriptassertion functionsSingle-choice MCQ

Which is the inferred type x after assertNonNull(x)?

function assertNonNull<T>(x: T | null | undefined): asserts x is T { /* ... */ }