TypeScript/tests/baselines/reference/ambientExternalModuleWithoutInternalImportDeclaration.types
2014-08-15 14:37:48 -07:00

30 lines
572 B
Plaintext

=== tests/cases/compiler/ambientExternalModuleWithoutInternalImportDeclaration_1.ts ===
///<reference path='ambientExternalModuleWithoutInternalImportDeclaration_0.ts'/>
import A = require('M');
>A : typeof C
var c = new A();
>c : C
>new A() : C
>A : typeof C
=== tests/cases/compiler/ambientExternalModuleWithoutInternalImportDeclaration_0.ts ===
declare module 'M' {
module C {
>C : typeof C
export var f: number;
>f : number
}
class C {
>C : C
foo(): void;
>foo : () => void
}
export = C;
>C : C
}