TypeScript/tests/baselines/reference/structuralTypeInDeclareFileForModule.js
2014-07-15 13:08:10 -07:00

19 lines
325 B
TypeScript

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