* fix parsing of leading union/intersection operator Fixes: #30995 * test declaration emit
12 lines
241 B
TypeScript
12 lines
241 B
TypeScript
// @declaration: true
|
|
type A = | string;
|
|
type B =
|
|
| { type: "INCREMENT" }
|
|
| { type: "DECREMENT" };
|
|
|
|
type C = [| 0 | 1, | "foo" | "bar"];
|
|
|
|
export type D =
|
|
/*leading0*/
|
|
| /*leading1*/ 1 /*trailing1*/
|
|
| /*leading2*/ 2 /*trailing2*/; |