找不到模块“mymodule”的声明文件

Int*_*ing 8 javascript node.js typescript angular

我尝试导入我的测试模块安装npm i github.com/.../...和代码,它工作正常,但在 VSCode 中它有这样的东西:

Could not find a declaration file for module 'estrajs'. 'C:/Users/Users/Desktop/Test/TestFolder/node_modules/mymodule/index.js' implicitly has an 'any' type.
  Try `npm i --save-dev @types/mymodule` if it exists or add a new declaration (.d.ts) file containing `declare module 'mymodule';`ts(7016)
Run Code Online (Sandbox Code Playgroud)

我该如何进行声明?我已经在typings/index.d.ts上创建了文件

Int*_*ing 13

啊,我想通了,我只需在 index.d.ts 文件上输入即可

declare module 'mymodule';
Run Code Online (Sandbox Code Playgroud)