Skip to main content
Journey Uncommon Logo
JourneyUncommon
hardTypeScriptNoInfer and const type paramsSingle-choice MCQ

Given the function below, what is the inferred type of `result`, and what role does `NoInfer` play here?

declare function create<T>( items: T[], selected: NoInfer<T> ): T; const result = create(["a", "b"], "c");