Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 5e4f13f

Browse filesBrowse files
committed
Removed one error to avoid full path issues
1 parent 573bfec commit 5e4f13f
Copy full SHA for 5e4f13f

File tree

Expand file treeCollapse file tree

5 files changed

+2
-13
lines changed
Filter options
Expand file treeCollapse file tree

5 files changed

+2
-13
lines changed

‎tests/baselines/reference/project/nodeModulesMaxDepthIncreased/amd/maxDepthIncreased/root.js

Copy file name to clipboardExpand all lines: tests/baselines/reference/project/nodeModulesMaxDepthIncreased/amd/maxDepthIncreased/root.js
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,5 @@ define(["require", "exports", "m1", "m4"], function (require, exports, m1, m4) {
33
m1.f1("test");
44
m1.f2.a = 10;
55
m1.f2.person.age = "10"; // Should error if loaded the .js files correctly
6-
var r1 = m4.test.charAt(2); // Should error if correctly not using the .js file but using @types info
76
var r2 = 3 + m4.foo; // Should be OK if correctly using the @types .d.ts file
87
});

‎tests/baselines/reference/project/nodeModulesMaxDepthIncreased/amd/nodeModulesMaxDepthIncreased.errors.txt

Copy file name to clipboardExpand all lines: tests/baselines/reference/project/nodeModulesMaxDepthIncreased/amd/nodeModulesMaxDepthIncreased.errors.txt
+1-5Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
maxDepthIncreased/root.ts(7,1): error TS2322: Type 'string' is not assignable to type 'number'.
2-
maxDepthIncreased/root.ts(8,13): error TS2339: Property 'test' does not exist on type 'typeof "C:/src/TypeScript/tests/cases/projects/NodeModulesSearch/maxDepthIncreased/node_modules/@...'.
32

43

54
==== index.js (0 errors) ====
@@ -32,7 +31,7 @@ maxDepthIncreased/root.ts(8,13): error TS2339: Property 'test' does not exist on
3231
==== entry.d.ts (0 errors) ====
3332
export declare var foo: number;
3433

35-
==== maxDepthIncreased/root.ts (2 errors) ====
34+
==== maxDepthIncreased/root.ts (1 errors) ====
3635
import * as m1 from "m1";
3736
import * as m4 from "m4";
3837

@@ -42,9 +41,6 @@ maxDepthIncreased/root.ts(8,13): error TS2339: Property 'test' does not exist on
4241
m1.f2.person.age = "10"; // Should error if loaded the .js files correctly
4342
~~~~~~~~~~~~~~~~
4443
!!! error TS2322: Type 'string' is not assignable to type 'number'.
45-
let r1 = m4.test.charAt(2); // Should error if correctly not using the .js file but using @types info
46-
~~~~
47-
!!! error TS2339: Property 'test' does not exist on type 'typeof "C:/src/TypeScript/tests/cases/projects/NodeModulesSearch/maxDepthIncreased/node_modules/@...'.
4844

4945
let r2 = 3 + m4.foo; // Should be OK if correctly using the @types .d.ts file
5046

‎tests/baselines/reference/project/nodeModulesMaxDepthIncreased/node/maxDepthIncreased/root.js

Copy file name to clipboardExpand all lines: tests/baselines/reference/project/nodeModulesMaxDepthIncreased/node/maxDepthIncreased/root.js
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,4 @@ var m4 = require("m4");
44
m1.f1("test");
55
m1.f2.a = 10;
66
m1.f2.person.age = "10"; // Should error if loaded the .js files correctly
7-
var r1 = m4.test.charAt(2); // Should error if correctly not using the .js file but using @types info
87
var r2 = 3 + m4.foo; // Should be OK if correctly using the @types .d.ts file

‎tests/baselines/reference/project/nodeModulesMaxDepthIncreased/node/nodeModulesMaxDepthIncreased.errors.txt

Copy file name to clipboardExpand all lines: tests/baselines/reference/project/nodeModulesMaxDepthIncreased/node/nodeModulesMaxDepthIncreased.errors.txt
+1-5Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
maxDepthIncreased/root.ts(7,1): error TS2322: Type 'string' is not assignable to type 'number'.
2-
maxDepthIncreased/root.ts(8,13): error TS2339: Property 'test' does not exist on type 'typeof "C:/src/TypeScript/tests/cases/projects/NodeModulesSearch/maxDepthIncreased/node_modules/@...'.
32

43

54
==== index.js (0 errors) ====
@@ -32,7 +31,7 @@ maxDepthIncreased/root.ts(8,13): error TS2339: Property 'test' does not exist on
3231
==== entry.d.ts (0 errors) ====
3332
export declare var foo: number;
3433

35-
==== maxDepthIncreased/root.ts (2 errors) ====
34+
==== maxDepthIncreased/root.ts (1 errors) ====
3635
import * as m1 from "m1";
3736
import * as m4 from "m4";
3837

@@ -42,9 +41,6 @@ maxDepthIncreased/root.ts(8,13): error TS2339: Property 'test' does not exist on
4241
m1.f2.person.age = "10"; // Should error if loaded the .js files correctly
4342
~~~~~~~~~~~~~~~~
4443
!!! error TS2322: Type 'string' is not assignable to type 'number'.
45-
let r1 = m4.test.charAt(2); // Should error if correctly not using the .js file but using @types info
46-
~~~~
47-
!!! error TS2339: Property 'test' does not exist on type 'typeof "C:/src/TypeScript/tests/cases/projects/NodeModulesSearch/maxDepthIncreased/node_modules/@...'.
4844

4945
let r2 = 3 + m4.foo; // Should be OK if correctly using the @types .d.ts file
5046

‎tests/cases/projects/NodeModulesSearch/maxDepthIncreased/root.ts

Copy file name to clipboardExpand all lines: tests/cases/projects/NodeModulesSearch/maxDepthIncreased/root.ts
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,5 @@ m1.f1("test");
55
m1.f2.a = 10;
66

77
m1.f2.person.age = "10"; // Should error if loaded the .js files correctly
8-
let r1 = m4.test.charAt(2); // Should error if correctly not using the .js file but using @types info
98

109
let r2 = 3 + m4.foo; // Should be OK if correctly using the @types .d.ts file

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.