Removed one error to avoid full path issues

This commit is contained in:
Bill Ticehurst 2016-06-30 16:36:39 -07:00
parent 573bfec854
commit 5e4f13f342
5 changed files with 2 additions and 13 deletions

View file

@ -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
});

View file

@ -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) ====
@ -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";
@ -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

View file

@ -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

View file

@ -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) ====
@ -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";
@ -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

View file

@ -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