Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
University project I decided the stack on. I guess you can feel my regret now..😣
-
@mjones44 exactly my point, why not use TS for the stuff you work on and let everyone else use standard js
-
@beegC0de oh, because the compiled JS is unreadable, that would be a major reason why not (if that's what you meant?)
-
@beegC0de yeah but it won't even have meaningful variable names and the design patterns will look really weird no matter what for generated JS code
-
@mjones44 https://typescriptlang.org/play/ pretty sure it's targeting ES5 so if you wanted to have es6 class syntax you probably have to specify --target "ES2015" using the actual compiler
-
@mjones44 actually these two are probably what you want if you want es6
One using Babel:
https://babeljs.io/en/repl/...= -
musician6656yJust transpile it.
I also cant imagine writing pure js for anything other than websites anymore. I need my types -
musician6656yOh and if you really cant do it in ts you still can use some of typescripts features to check your regular javascript
-
@musician doing so, actually. But jsdoc is pretty lame if you have to add all the types..^^
Going back to JS after heavily using Typescript sucks so bad. :(
rant
suggestions
compiling
typescript
javascript
types