My background is in C++ and I am just beginning to explore TypeScript. I'm facing a runtime error while trying to implement a design (interface/class) that spans multiple files. The error message reads:
0x800a1391 - JavaScript runtime error: 'module' is not defined
Here is the code snippet from Info.ts:
export = Test; <----------- 0x800a1391 - JavaScript runtime error: 'module' is not defined
namespace Test {
export class Info {
}
}
And here is the code snippet from TestWrapper.ts:
import { Info } from "./Info";
namespace Test {
class TestWrapper {
public GetInfo(): Info {
return this.m_info;
}
}
}
I'm wondering if I'm using something incorrectly in my code. Any insight would be greatly appreciated!