48 lines
938 B
TypeScript
48 lines
938 B
TypeScript
//// [moduleElementsInWrongContext2.ts]
|
|
function blah () {
|
|
module M { }
|
|
export namespace N {
|
|
export interface I { }
|
|
}
|
|
|
|
namespace Q.K { }
|
|
|
|
declare module "ambient" {
|
|
|
|
}
|
|
|
|
export = M;
|
|
|
|
var v;
|
|
function foo() { }
|
|
export * from "ambient";
|
|
export { foo };
|
|
export { baz as b } from "ambient";
|
|
export default v;
|
|
export default class C { }
|
|
export function bee() { }
|
|
import I = M;
|
|
import I2 = require("foo");
|
|
import * as Foo from "ambient";
|
|
import bar from "ambient";
|
|
import { baz } from "ambient";
|
|
import "ambient";
|
|
}
|
|
|
|
|
|
//// [moduleElementsInWrongContext2.js]
|
|
function blah() {
|
|
var v;
|
|
function foo() { }
|
|
__export(require("ambient"));
|
|
exports["default"] = v;
|
|
var C = (function () {
|
|
function C() {
|
|
}
|
|
return C;
|
|
})();
|
|
exports["default"] = C;
|
|
function bee() { }
|
|
exports.bee = bee;
|
|
}
|