| Crates.io | tree-sitter-typescript-codemod |
| lib.rs | tree-sitter-typescript-codemod |
| version | 0.25.0-codemod.1 |
| created_at | 2025-02-03 05:39:32.560246+00 |
| updated_at | 2025-02-03 05:39:32.560246+00 |
| description | TypeScript and TSX grammars for tree-sitter |
| homepage | |
| repository | https://github.com/tree-sitter/tree-sitter-typescript |
| max_upload_size | |
| id | 1540142 |
| size | 18,638,802 |
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