1

As I understand typescript gets converted to javascript. I have a file MyTypeScript.ts in a webstorm project. I want to be able to see my generated javascript. How do I do this in Webstorm?

2 Answers 2

3

Set up a file watcher and you'll see both the .ts and .js files in the project view.

Sign up to request clarification or add additional context in comments.

Comments

2

Install TypeScript with npm if you haven't done so already: npm install -g typescript

Once that is done, go into WebStorm preferences, navigate to File Watchers and set up a new TypeScript watch. The program field is the path to your installed TypeScript.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.