1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
|
=== tests/cases/compiler/x.ts ===
// ESM output
export default 0;
=== tests/cases/compiler/y.tsx ===
export default 0;
=== tests/cases/compiler/z.d.ts ===
declare const x: number;
>x : Symbol(x, Decl(z.d.ts, 0, 13))
export default x;
>x : Symbol(x, Decl(z.d.ts, 0, 13))
=== tests/cases/compiler/user.ts ===
import x from "./x.ts";
>x : Symbol(x, Decl(user.ts, 0, 6))
import y from "./y.tsx";
>y : Symbol(y, Decl(user.ts, 1, 6))
import z from "./z.d.ts";
>z : Symbol(z, Decl(user.ts, 2, 6))
// Making sure the suggested fixes are valid:
import x2 from "./x";
>x2 : Symbol(x2, Decl(user.ts, 5, 6))
import y2 from "./y";
>y2 : Symbol(y2, Decl(user.ts, 6, 6))
import z2 from "./z";
>z2 : Symbol(z2, Decl(user.ts, 7, 6))
|