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.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b39bd7-2b936.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b39bd7-2b936.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?