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

187
Views
How to start a TypeScript project with a JS library (without type declarations) using nodemon tool?

I would like to use a JavaScript library (without type declarations) in a TypeScript project. I created a declaration file for the library. A declaration, for example, is declare module 'ocsp';.

It's OK when I run the project with a command "npm run build". But, there is a problem to start a project by nodemon "nodemon src/index.ts".

It shows the following error: error TS7016: Could not find a declaration file for module 'ocsp'. 'D:/Development/Workspace/test-project/node_modules/ocsp/lib/ocsp.js' implicitly has an 'any' type. Try npm i --save-dev @types/ocsp if it exists or add a new declaration (.d.ts) file containing declare module 'ocsp';

How to start a TypeScript project with a JavaScript library (without type declarations) using nodemon tool?

about 4 years ago · Juan Pablo Isaza
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!