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