Skip to content

Commit

Permalink
Removed one error to avoid full path issues
Browse files Browse the repository at this point in the history
  • Loading branch information
billti committed Jun 30, 2016
1 parent 573bfec commit 5e4f13f
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,5 @@ define(["require", "exports", "m1", "m4"], function (require, exports, m1, m4) {
m1.f1("test");
m1.f2.a = 10;
m1.f2.person.age = "10"; // Should error if loaded the .js files correctly
var r1 = m4.test.charAt(2); // Should error if correctly not using the .js file but using @types info
var r2 = 3 + m4.foo; // Should be OK if correctly using the @types .d.ts file
});
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
maxDepthIncreased/root.ts(7,1): error TS2322: Type 'string' is not assignable to type 'number'.
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/@...'.


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

==== maxDepthIncreased/root.ts (2 errors) ====
==== maxDepthIncreased/root.ts (1 errors) ====
import * as m1 from "m1";
import * as m4 from "m4";

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

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

Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@ var m4 = require("m4");
m1.f1("test");
m1.f2.a = 10;
m1.f2.person.age = "10"; // Should error if loaded the .js files correctly
var r1 = m4.test.charAt(2); // Should error if correctly not using the .js file but using @types info
var r2 = 3 + m4.foo; // Should be OK if correctly using the @types .d.ts file
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
maxDepthIncreased/root.ts(7,1): error TS2322: Type 'string' is not assignable to type 'number'.
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/@...'.


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

==== maxDepthIncreased/root.ts (2 errors) ====
==== maxDepthIncreased/root.ts (1 errors) ====
import * as m1 from "m1";
import * as m4 from "m4";

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

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

Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,5 @@ m1.f1("test");
m1.f2.a = 10;

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

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

0 comments on commit 5e4f13f

Please sign in to comment.