tree-sitter-typescript

Crates.iotree-sitter-typescript
lib.rstree-sitter-typescript
version0.23.0
sourcesrc
created_at2021-03-09 17:42:54.001957
updated_at2024-09-02 21:15:26.306457
descriptionTypeScript and TSX grammars for tree-sitter
homepage
repositoryhttps://github.com/tree-sitter/tree-sitter-typescript
max_upload_size
id366430
size18,569,177
Patrick Thomson (patrickt)

documentation

README

tree-sitter-typescript

CI discord matrix crates npm pypi

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

Commit count: 717

cargo fmt