Q:

TypeScript: File 'XXX' is not a module

I want to import a module declared in an external file into an other TS file. But VSCode says that the file 'XXX' is not a module:
The illustrated error
I tried this possible fix but it doesn't work. Any idea?

A:

In ectm-apidatafmsproperties.ts, I changed declare module IApiDataFMsProperties by export module IApiDataFMsProperties and now it's working.
But I'm not sure if it's the right solution... Can someone tell me something about this possible fix?

