Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

784
Views
Could not find a declaration file for module 'mymodule'

I tried to import my test module installing with npm i github.com/.../... and the codes, it's working properly, but in VSCode it has something like this:

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)

How do I make the declaration of it? I already make file on typings/index.d.ts

about 4 years ago · Juan Pablo Isaza
2 answers
Answer question

0

Ah I figured out, I simply just type on index.d.ts file

declare module 'mymodule';
about 4 years ago · Juan Pablo Isaza Report

0

try to add the following to the tsconfig.json file

"noImplicitAny": false
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!