Get the union type parts of the given type.
If the given type is not a union type, an array contain only that type will be returned.
declare const type: ts.Type;for (const typePart of unionTypeParts(type)) { // ...} Copy
declare const type: ts.Type;for (const typePart of unionTypeParts(type)) { // ...}
Get the union type parts of the given type.
If the given type is not a union type, an array contain only that type will be returned.