2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/a.ts ===
|
|
|
|
/// <reference path="b.ts" />
|
|
|
|
import ITest = require('ITest');
|
2014-08-28 21:40:58 +02:00
|
|
|
>ITest : unknown
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var testData: ITest[];
|
2014-08-25 19:36:12 +02:00
|
|
|
>testData : ITest[]
|
|
|
|
>ITest : ITest
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var p = testData[0].name;
|
|
|
|
>p : string
|
|
|
|
>testData[0].name : string
|
2014-08-25 19:36:12 +02:00
|
|
|
>testData[0] : ITest
|
|
|
|
>testData : ITest[]
|
2014-08-15 23:33:16 +02:00
|
|
|
>name : string
|
|
|
|
|
|
|
|
=== tests/cases/compiler/b.ts ===
|
|
|
|
declare module "ITest" {
|
|
|
|
interface Name {
|
|
|
|
>Name : Name
|
|
|
|
|
|
|
|
name: string;
|
|
|
|
>name : string
|
|
|
|
}
|
|
|
|
export = Name;
|
|
|
|
>Name : Name
|
|
|
|
}
|
|
|
|
|