TypeScript/tests/baselines/reference/structuralTypeInDeclareFileForModule.js

19 lines
325 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
//// [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 {
2014-07-12 01:36:06 +02:00
var x: any;
}
2014-07-12 01:36:06 +02:00
declare var m: typeof M;