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

205
Views
import js script in TypeScript

I need to import a javascript lib into my project without .d.ts files (for some reason it doesn't have), while sadly I cannot use 'import' or 'require' at the same time (the ts poject structure is old but cannot upgrade).Is there still any solution?The tsconfig.json may like the following:

{
    "compilerOptions": {
        "target": "ES5",
        "module": "amd",
        "skipLibCheck": true,
        "lib": [
            "DOM",
            "ES2015"
        ],
        "allowJs": true,
        "checkJs": false,
        "outFile": "./out/js/bundle.js"
    },
    "exclude": [
        "node_modules"
    ],
    "include": [
        "./lib/lib.js",
        "./src/**/*.ts"
    ]
}
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!