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

111
Views
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
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!