17 lines
339 B
TypeScript
17 lines
339 B
TypeScript
//// [generatorInAmbientContext6.ts]
|
|
module M {
|
|
export function *generator(): any { }
|
|
}
|
|
|
|
//// [generatorInAmbientContext6.js]
|
|
var M;
|
|
(function (M) {
|
|
function* generator() { }
|
|
M.generator = generator;
|
|
})(M || (M = {}));
|
|
|
|
|
|
//// [generatorInAmbientContext6.d.ts]
|
|
declare module M {
|
|
function generator(): any;
|
|
}
|