How do you prevent distribution over union types in a conditional type? TypeScript AssociateHard Try Now
What does the following conditional type evaluate to? type IsString = T extends string ? true : false; type A = IsString; type B = IsString; TypeScript AssociateHard Try Now
What is the output type of the following? type DeepReadonly = { readonly [K in keyof T]: T[K] extends object ? DeepReadonly : T[K] }; TypeScript AssociateHard Try Now
What does the following TypeScript produce? type Flatten = T extends Array ? U : T; type A = Flatten; type B = Flatten; TypeScript AssociateHard Try Now