2 ms·
> what does TS still bring to the table for people who aren't using Visual Studio?what does TS still bring to the table for people who aren't using Visual Studi
by yareally 11y ago
> what does TS still bring to the table for people who aren't using Visual Studio?what does TS still bring to the table for people who aren't using Visual Studio?
It doesn't require Visual Studio. Most major IDEs and some text editors have support either from Microsoft or the developers of the IDE/editor[1].
Also, strict typing (which I consider a huge plus for any long term large project to help make it sane).
I think it matters (though maybe not for everyone) that Anders Hejlsberg (of Delphi and C# creation fame) is behind the architecture of the language.
> no real JS API
Not sure what you mean by that, please clarify. JS notation works fine in it (since typescript is just a super set of JS and typing is optional). If you want to add types to a JS library, you just build an interface for it. Lots of examples of how to do that out there[2].
[1] https://github.com/Microsoft/TypeScript/wiki/TypeScript-Editor-Support https://github.com/Microsoft/TypeScript/wiki/TypeScript-Edit...
[2] https://github.com/borisyankov/DefinitelyTyped https://github.com/borisyankov/DefinitelyTyped
- pluma 11y ago> JS API I mean a JS interface to the transpiler. At the time there was only the CLI, nothing that worked on strings or streams within node code. > IDE support ... strict typing ... Ditto for flow, though.
- deleted 11y ago[deleted]
- AntiRush 11y agoThe compiler api has gotten a lot better: https://github.com/Microsoft/TypeScript/wiki/Using-the-Compiler-API https://github.com/Microsoft/TypeScript/wiki/Using-the-Compi... If you just want string->string compilation, there's typestring, which wraps the api: https://www.npmjs.com/package/typestring https://www.npmjs.com/package/typestring