16fc7a22e2
A union type literal is written as a sequence of types separated by vertical bars. UnionType: PrimaryOrUnionType | PrimaryType A union typle literal references a union type. When function or constructor types are included in union types they must be enclosed in parentheses |
||
---|---|---|
.. | ||
arrayLiteral.ts | ||
arrayOfFunctionTypes3.ts | ||
arrayTypeOfFunctionTypes.ts | ||
arrayTypeOfFunctionTypes2.ts | ||
arrayTypeOfTypeOf.ts | ||
functionLiteral.ts | ||
functionLiteralForOverloads.ts | ||
functionLiteralForOverloads2.ts | ||
parenthesizedTypes.ts | ||
unionTypeLiterals.ts |