| Crates.io | tree-sitter-typescript |
| lib.rs | tree-sitter-typescript |
| version | 0.23.2 |
| created_at | 2021-03-09 17:42:54.001957+00 |
| updated_at | 2024-11-11 02:33:46.110337+00 |
| description | TypeScript and TSX grammars for tree-sitter |
| homepage | |
| repository | https://github.com/tree-sitter/tree-sitter-typescript |
| max_upload_size | |
| id | 366430 |
| size | 18,394,644 |
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