13 unstable releases (3 breaking)
0.23.2 | Nov 11, 2024 |
---|---|
0.23.0 | Sep 2, 2024 |
0.21.2 | Jul 6, 2024 |
0.20.5 | Feb 1, 2024 |
0.19.0 | Mar 9, 2021 |
#93 in Web programming
26,787 downloads per month
Used in 50 crates
(35 directly)
18MB
566K
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