TypeScript/tests/baselines/reference/moduleResolutionNoTsCJS.symbols
Christian 7a5aadca69
Adjust TS2691 message for .ts import sources (#42184)
* Adjust TS2691 message for .ts import sources

* Only ModuleKind is needed for TS2691 logic

* Added tests for TS2691
2021-01-05 11:10:04 -08:00

36 lines
971 B
Plaintext

=== tests/cases/compiler/x.ts ===
// CommonJS output
No type information for this code.
No type information for this code.export default 0;
No type information for this code.
No type information for this code.=== tests/cases/compiler/y.tsx ===
export default 0;
No type information for this code.
No type information for this code.=== 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))