Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- export class Foo {
- prop1: number = 1;
- }
- import { Foo as FooClass } from "./Foo";
- export namespace main {
- export const Foo = FooClass;
- }
- define("Foo", ["require", "exports"], function (require, exports) {
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
- var Foo = /** @class */ (function () {
- function Foo() {
- this.prop1 = 1;
- }
- return Foo;
- }());
- exports.Foo = Foo;
- });
- define("foo2", ["require", "exports", "Foo"], function (require, exports, Foo_1) {
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
- var main;
- (function (main) {
- main.Foo = Foo_1.Foo; //ERROR: Cannot read property 'Foo' of undefined
- })(main = exports.main || (exports.main = {}));
- });
- import {main} from '../node_modules/main'
Add Comment
Please, Sign In to add comment