What does ‘asserts condition’ as a function return type enable in TypeScript? TypeScript ProfessionalHard Try Now
What does the following variadic tuple type compute? type Concat = […A, …B]; TypeScript ProfessionalHard Try Now
What is the difference between distributive and non-distributive conditional types, and how do you create the latter? TypeScript ProfessionalHard Try Now
What does the following recursive type compute? type TupleLength = T extends [any, …infer Rest] ? TupleLength : Acc[‘length’]; TypeScript ProfessionalHard Try Now
What does the following type produce for IsNever and IsNever? type IsNever = [T] extends [never] ? true : false; TypeScript ProfessionalHard Try Now
What does the following type compute and what technique does it use? type UnionToIntersection = (U extends any ? (x: U) => void : never) extends (x: infer I) => void ? I : never; TypeScript ProfessionalHard Try Now
What is TypeScript’s ‘module: NodeNext’ resolution mode and what does it require? TypeScript ProfessionalMedium Try Now
What does TypeScript’s ‘noPropertyAccessFromIndexSignature’ option enforce? TypeScript ProfessionalMedium Try Now
What does TypeScript’s ‘exactOptionalPropertyTypes’ option change? TypeScript ProfessionalMedium Try Now
What is the difference between ‘import type’ and ‘import’ in TypeScript? TypeScript ProfessionalMedium Try Now
What does TypeScript’s ‘paths’ compiler option in tsconfig.json enable? TypeScript ProfessionalMedium Try Now
What is the ‘Readonly’ utility type and how does it differ from ‘Object.freeze()’ at runtime? TypeScript ProfessionalMedium Try Now
What does TypeScript’s ‘isolatedModules’ tsconfig option enforce? TypeScript ProfessionalMedium Try Now
What does the ‘unique symbol’ type provide over the ‘symbol’ type? TypeScript ProfessionalMedium Try Now