tree-sitter-typescript 0.23.2


pip install tree-sitter-typescript

  Latest version

Released: Nov 11, 2024

Project Links

Meta
Author: Max Brunsfeld, Amaan Qureshi
Requires Python: >=3.9

Classifiers

Intended Audience
  • Developers

License
  • OSI Approved :: MIT License

Topic
  • Software Development :: Compilers
  • Text Processing :: Linguistic

Typing
  • Typed

tree-sitter-typescript

CI discord matrix crates npm pypi

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 tsx parser.

References

Extras:
Dependencies: