4 releases
new 0.20.2 | Jan 24, 2023 |
---|---|
0.20.1 | Mar 29, 2022 |
0.20.0 | Oct 4, 2021 |
0.19.0 | Mar 9, 2021 |
#306 in Parser implementations
9,034 downloads per month
Used in 9 crates
(6 directly)
13MB
432K
SLoC
tree-sitter-typescript
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
Dependencies
~1.4–2MB
~52K SLoC