In the Typescript project, I need to import old js-modules that use module.exports inside.
When I import:
import * as httpConnection from '...path...'; The compiler throws an error:
Could not find a declaration file for module '...path...'. '...path...' implicitly has an 'any' type. After that, everything works, but I need to get rid of this error in the console.
How can I explain to the compiler that the imported entities are of type any without using the .d.ts file?
Thanks for the ideas in advance.