A conditional type.
type NotNull = If<true, string>; // stringtype Null = If<false, string>; // nulltype Optional = If<boolean, string>; // string | null
A conditional type.
Example