TypeScript/tests/baselines/reference/ambientExternalModuleWithoutInternalImportDeclaration.types

30 lines
572 B
Plaintext
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/ambientExternalModuleWithoutInternalImportDeclaration_1.ts ===
///<reference path='ambientExternalModuleWithoutInternalImportDeclaration_0.ts'/>
import A = require('M');
2014-08-28 21:40:58 +02:00
>A : typeof A
2014-08-15 23:33:16 +02:00
var c = new A();
2014-08-25 19:36:12 +02:00
>c : A
>new A() : A
>A : typeof A
2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/ambientExternalModuleWithoutInternalImportDeclaration_0.ts ===
declare module 'M' {
module C {
2014-08-28 21:40:58 +02:00
>C : typeof C
2014-08-15 23:33:16 +02:00
export var f: number;
>f : number
}
class C {
>C : C
foo(): void;
>foo : () => void
}
export = C;
>C : C
}