* Adjust TS2691 message for .ts import sources * Only ModuleKind is needed for TS2691 logic * Added tests for TS2691
36 lines
757 B
Plaintext
36 lines
757 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 : number
|
|
|
|
export default x;
|
|
>x : number
|
|
|
|
=== tests/cases/compiler/user.ts ===
|
|
import x from "./x.ts";
|
|
>x : any
|
|
|
|
import y from "./y.tsx";
|
|
>y : any
|
|
|
|
import z from "./z.d.ts";
|
|
>z : any
|
|
|
|
// Making sure the suggested fixes are valid:
|
|
import x2 from "./x";
|
|
>x2 : 0
|
|
|
|
import y2 from "./y";
|
|
>y2 : 0
|
|
|
|
import z2 from "./z";
|
|
>z2 : number
|
|
|