If
Conditional type to check if T is true, then A, else B or A | null.
Signature
type If<T extends boolean, A, B = null> = T extends true ? A : B extends null ? A | null : B;Members
This export does not declare public properties or methods in the generated declaration file.