In Typescript project I need to import some old js files that do module.exports inside of themselves.
As i import:
import * as httpConnection from '...path...';
I got errors from compiler:
Could not find a declaration file for module '...path...'. '...path...' implicitly has an 'any' type.
After that it works OK, but i need to avoid this error in console.
How can I make compiler understand that import has any type without creating declaration file?
Thanks for ideas in advance.