The best way to describe my problem is to show the code:
I have ns.d.ts:
declare namespace ns {
}
and a lot of .ts files that're using this namespace:
let a = new ns.ClassOne();
let c = new ns.submodule.function(23);
Output:
error TS2694: Namespace 'ns' has no exported member 'ClassOne'.
error TS2708: Cannot use namespace 'ns' as a value.
Basically, I have a huuuge namespace and a codebase that uses it's classes, submodules and functions. The problem is, I don't want to write the whole types definitions - I want typescript to completely ignore it.
Is there any way to define this namespace, so TypeScript will acknowledge I know what I'm doing and will allow me to use this namespace without forcing me to type everything it contains?