TypeScript/tests/baselines/reference/structuralTypeInDeclareFileForModule.js
2015-05-13 10:59:40 +08:00

18 lines
315 B
TypeScript

//// [structuralTypeInDeclareFileForModule.ts]
module M { export var x; }
var m = M;
//// [structuralTypeInDeclareFileForModule.js]
var M;
(function (M) {
})(M || (M = {}));
var m = M;
//// [structuralTypeInDeclareFileForModule.d.ts]
declare module M {
var x: any;
}
declare var m: typeof M;