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

112
Visualizações
How to include TypeScript files in electron project besides placing the generated JavaScript in the HTML

Currently i'm "importing" my generated javascript files through index.html like so

<script src="scripts/drawable.js" defer></script>
<script src="scripts/clickable.js" defer></script>
<script src="scripts/images.js" defer></script>
<script src="scripts/buttons.js" defer></script>
<script src="scripts/keys.js" defer></script>
<script src="scripts/sprite.js" defer></script>
<script src="scripts/audio.js" defer></script>
<script src="scripts/main.js" defer></script>

But the only file that is actually being ran is main.js. All the other files have class definitions that are used on main.js (or really main.ts). Is there any way to have main.ts import the class definitions from the other files and just have that single file included in the html?

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