Conditional types enable you to create types that are based on other types and can be refined based on some condition.
Example:

Conditional types enable you to create types that are based on other types and can be refined based on some condition.
Example:
