I am trying to use a session helper called connect-session-knex that is not hidden enough that it does not have a published typescript definition. So when I try to compile the typescript node project, I get an error message,
error TS2307 Cannot find module 'connect-session-knex'
Is there a way to ignore TS only for this module? How to import it without TSD? I know knex has tsd, but no wrapper. I ask about this from a general point of view of what to do with libraries without specifying types.
For all who are looking for: Compilation of typescript when it does not have tsd. Missing. Without a theater.
Flavorcape
source share