Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

242
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda