TypeScript/tests/cases/compiler/unionTypeWithLeadingOperator.ts
2016-11-20 22:26:32 +01:00

7 lines
119 B
TypeScript

type A = | string;
type B =
| { type: "INCREMENT" }
| { type: "DECREMENT" };
type C = [| 0 | 1, | "foo" | "bar"];