How can an arbitrary third-party module without a types declaration file be used in a typescript project as quickly as possible?

typescript and require ("koa-nunjucks-2") are used in the project. The koa-nunjucks-2 module does not have a d.ts declaration file. How can you write a koa-nunjucks-2 declaration file in the most concise way, or use other settings such as any to solve the compilation problem?

Mar.28,2022

  https://codeshelper.com/a/11.

Menu