Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Node.js Interactive Window and TypeScript #30

Closed
MystK opened this issue Apr 7, 2015 · 4 comments
Closed

Node.js Interactive Window and TypeScript #30

MystK opened this issue Apr 7, 2015 · 4 comments

Comments

@MystK
Copy link
Contributor

MystK commented Apr 7, 2015

Hello. Is there an option to allow TypeScript to work with the NIW?

If not, would this be feature in the near future?

@mousetraps
Copy link
Contributor

For now, the best workaround I know is...

  • creating a typescript file with the code you want to to test (and make sure you are using the CommonJS module system)
  • using require('path-to-underlying-javascript-file') and use it as you would if you were using node.exe in the command line.

Re: future plans - We'll have a roadmap up soon so this future thing becomes a little more concrete. For this... not near future unless it's coming from the TypeScript team or some really dedicated TypeScript + Node.js fan. .

Now let's say you fit in one of these two categories :)

From an engineering point of view... While we do support TypeScript, we actually throw you into the TypeScript editor when you're working with .ts files. So support in the interactive would require the Node.js IntelliSense engine, syntax highlighter, etc. to support TypeScript (pretty non-ideal from a maintenance perspective). Alternatively if TypeScript exposed the right pieces to us, we could potentially plug into their tooling and get this for free. Additionally, we'd need to do some extra compile step to generate the .js code before running it through node.exe.

@mousetraps
Copy link
Contributor

@bowdenk7 @jramsay @paulvanbrenk @DanielRosenwasser potentially interesting Salsa / Node.js / TS scenario, and may even help people experiment with and learn typescript! It would involve transpiling and running under the covers, and also presents some interesting challenges when it comes to incremental updates.

@DanielRosenwasser
Copy link
Member

👍, and microsoft/TypeScript#6508 might also be an issue of interest here.

@paulvanbrenk paulvanbrenk modified the milestone: Future Aug 24, 2017
@paulvanbrenk
Copy link
Contributor

Closing this.

This will require wide ranging changes, and the current usage doesn't warrant making those changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants