9 releases
0.21.1 | May 6, 2024 |
---|---|
0.20.5 | Feb 1, 2024 |
0.20.3 | Oct 4, 2023 |
0.20.2 | Jan 24, 2023 |
0.19.0 | Mar 9, 2021 |
#240 in Parser implementations
13,231 downloads per month
Used in 37 crates
(29 directly)
25MB
787K
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 tsx
parser.
References
Dependencies
~2.7–4MB
~71K SLoC