tree-sitter-typescript

0.20.5 • Public • Published

tree-sitter-typescript

CI Discord Rust Crate Node Package

TypeScript and TSX grammars for tree-sitter.

Because TSX and TypeScript are actually two different dialects, this module defines two grammars. Require them as follows:

require("tree-sitter-typescript").typescript; // TypeScript grammar
require("tree-sitter-typescript").tsx; // TSX grammar

For Javascript files with flow type annotations you can use the the tsx parser.

References

Package Sidebar

Install

npm i tree-sitter-typescript

Weekly Downloads

9,174

Version

0.20.5

License

MIT

Unpacked Size

26.9 MB

Total Files

49

Last publish

Collaborators

  • amaanq
  • ahlinc
  • maxbrunsfeld
  • tclem
  • daviwil
  • queerviolet
  • rewinfrey
  • ben3eee
  • atom-team
  • darangi
  • patrickthomson