You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/baselines/reference/project/nodeModulesMaxDepthIncreased/amd/nodeModulesMaxDepthIncreased.errors.txt
+10-2
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
maxDepthIncreased/root.ts(4,1): error TS2322: Type 'string' is not assignable to type 'number'.
1
+
maxDepthIncreased/root.ts(7,1): error TS2322: Type 'string' is not assignable to type 'number'.
2
2
3
3
4
4
==== index.js (0 errors) ====
@@ -28,11 +28,19 @@ maxDepthIncreased/root.ts(4,1): error TS2322: Type 'string' is not assignable to
28
28
29
29
exports.f2 = m2;
30
30
31
+
==== entry.d.ts (0 errors) ====
32
+
export declare var foo: number;
33
+
31
34
==== maxDepthIncreased/root.ts (1 errors) ====
32
35
import * as m1 from "m1";
36
+
import * as m4 from "m4";
37
+
33
38
m1.f1("test");
34
39
m1.f2.a = 10;
35
-
m1.f2.person.age = "10"; // Error: Should be number
40
+
41
+
m1.f2.person.age = "10"; // Should error if loaded the .js files correctly
36
42
~~~~~~~~~~~~~~~~
37
43
!!! error TS2322: Type 'string' is not assignable to type 'number'.
44
+
45
+
let r2 = 3 + m4.foo; // Should be OK if correctly using the @types .d.ts file
Copy file name to clipboardExpand all lines: tests/baselines/reference/project/nodeModulesMaxDepthIncreased/node/nodeModulesMaxDepthIncreased.errors.txt
+10-2
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
maxDepthIncreased/root.ts(4,1): error TS2322: Type 'string' is not assignable to type 'number'.
1
+
maxDepthIncreased/root.ts(7,1): error TS2322: Type 'string' is not assignable to type 'number'.
2
2
3
3
4
4
==== index.js (0 errors) ====
@@ -28,11 +28,19 @@ maxDepthIncreased/root.ts(4,1): error TS2322: Type 'string' is not assignable to
28
28
29
29
exports.f2 = m2;
30
30
31
+
==== entry.d.ts (0 errors) ====
32
+
export declare var foo: number;
33
+
31
34
==== maxDepthIncreased/root.ts (1 errors) ====
32
35
import * as m1 from "m1";
36
+
import * as m4 from "m4";
37
+
33
38
m1.f1("test");
34
39
m1.f2.a = 10;
35
-
m1.f2.person.age = "10"; // Error: Should be number
40
+
41
+
m1.f2.person.age = "10"; // Should error if loaded the .js files correctly
36
42
~~~~~~~~~~~~~~~~
37
43
!!! error TS2322: Type 'string' is not assignable to type 'number'.
44
+
45
+
let r2 = 3 + m4.foo; // Should be OK if correctly using the @types .d.ts file
0 commit comments