What is the purpose of conditional types in TypeScript?
To conditionally assign types at runtime.
To allow dynamic type conversions.
To create types based on a condition evaluated at compile time.
To replace union types with intersection types.
This question is part of this quiz :
Advanced Types in TypeScript Quiz