2019-05-08 23:09:11 +02:00
|
|
|
// @declaration: true
|
2016-11-19 22:30:33 +01:00
|
|
|
type A = | string;
|
|
|
|
type B =
|
|
|
|
| { type: "INCREMENT" }
|
|
|
|
| { type: "DECREMENT" };
|
2016-11-20 22:26:32 +01:00
|
|
|
|
|
|
|
type C = [| 0 | 1, | "foo" | "bar"];
|
2019-05-08 23:09:11 +02:00
|
|
|
|
|
|
|
export type D =
|
|
|
|
/*leading0*/
|
|
|
|
| /*leading1*/ 1 /*trailing1*/
|
|
|
|
| /*leading2*/ 2 /*trailing2*/;
|