Test if a type is a UnionType.
UnionType
declare const type: ts.Type;if (isUnionType(type)) { // ...} Copy
declare const type: ts.Type;if (isUnionType(type)) { // ...}
Test if a type is a
UnionType
.