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');
>A : typeof A
2014-08-15 23:33:16 +02:00
var c = new A();
>c : A
2014-08-25 19:36:12 +02:00
>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 {
>C : typeof C
2014-08-15 23:33:16 +02:00
export var f: number;
>f : number
2014-08-15 23:33:16 +02:00
}
class C {
>C : C
2014-08-15 23:33:16 +02:00
foo(): void;
>foo : () => void
2014-08-15 23:33:16 +02:00
}
export = C;
>C : C
2014-08-15 23:33:16 +02:00
}