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

238
Views
How to use Javascript module in typescript

I have a third-party Javascript module that is done in AMD way. I do not have typing file (type.d) for it nor I can create the typing file.

But I need to use the module in one of the typescript How can I do it.

Please note I have also a few javascript files which are using the third-party javascript module there I am using it this way

       require(["thirdPartyModule"], function(module){

             //this is just example code
             module.doSomething();

             //more code here
         }

How can I do the same thing in typescript asking it to load the Js module as a dependency. Also we since another Javascript is already loading the module hence we have the third party module loaded in DOM already through requireJs

Any help or pointer to read will highly be appricated

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

0

i think you just need to import those JS files into your HTML and then you should be able to use them

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!