I am facing an issue with two modules and two classes. ModuleA, ModuleB, ClassA, and ClassB are defined as follows:
export class ClassA
{
}
export class ClassB
{
}
The modules are structured like this:
export * from './ClassA';
export module ModuleA{};
export * from './ClassB';
export module ModuleB{};
In addition, there is a ParentModule that contains ModuleA and ModuleB:
export * from './ModuleB';
export * from './ModuleA';
export module ParentModule{}
Within the Test.ts file, I have the following code:
import { ClassA } from './ParentModule';
class Test extends ClassA
{
}
Although the IDE recognizes the reference, it throws a 'not defined' error at runtime. Any suggestions on how to resolve this issue?