Skip to main content
Journey Uncommon Logo
JourneyUncommon
hardTypeScriptinference internalsSingle-choice MCQ

With `NoInfer` on the second parameter, the call below is rejected. By what mechanism does `NoInfer<T>` cause this?

declare function create<T extends string>( value: T, fallback: NoInfer<T> ): T; const c = create("a", "b");