Ask coding questions

← Back to all posts
How do I compile my TypeScript files in REPL?
Solstics (0)

I am trying to work on my Typescript course by Academind. I see REPL supports TypeScript now but I can't find out how to compile my files after creating a new TypeScript REPL.

SixBeeps (5055)

You can hit this run button to run your code

Alternatively, if that's not what you're looking for, you can hit Ctrl+Shift+S to access the shell.

Solstics (0)

I noticed if I put everything in index.js it works. What if I want to compile other files?

CodeLongAndPros (1594)

@Solstics You can link to them by importing them from index, and using that code.