TypeScript (TS) extends ES5 with ES6 features and a (compile-time-only)
type system. It is implemented in TS/JS and offers a language service API
for inspecting and manipulating TS source.
typescript-tools (v0.2.0) provides access to the TypeScript Language Services
(v0.9) via a simple commandline server (`tss`). This makes it easy to build
editor/IDE plugins supporting TypeScript (when your editor is not itself
running JavaScript).
https://github.com/clausreinke/typescript-tools
Supported features (via TS language service) include:
- resolving dependencies (via `TypeScript.ReferenceResolver`)
- type and documentation lookup
- find definition, list references
- identifier completion (variables and properties)
- list load, syntax, and semantic errors
A Vim plugin (tss.vim) is included. Some users are working on Emacs
(linked) and Sublime (not published yet) plugins. If you build plugins
for other editors/IDEs based on typescript-tools, please let me know,
or better: announce them on our new project mailing list.
The protocol used by `tss` (commands over stdin, JSON over stdout) is
outlined on the project home page, as are the Vim plugin commands.
For changes since tss v0.1.0, see file CHANGES.txt.
I hope you'll find this useful. The sources might be interesting as an
example of using the language services (though I do not guarantee
that they are a good example!-).
Claus
http://clausreinke.github.com/