TypeScript grammar for tree-sitter
- JavaScript 68.5%
- C 22.7%
- Makefile 6.4%
- Tree-sitter Query 2.4%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .github | ||
| bindings | ||
| common | ||
| examples | ||
| queries | ||
| test/corpus | ||
| tsx | ||
| typescript | ||
| .editorconfig | ||
| .gitattributes | ||
| .gitignore | ||
| binding.gyp | ||
| Cargo.lock | ||
| Cargo.toml | ||
| CMakeLists.txt | ||
| eslint.config.mjs | ||
| go.mod | ||
| go.sum | ||
| LICENSE | ||
| Makefile | ||
| package-lock.json | ||
| package.json | ||
| Package.resolved | ||
| Package.swift | ||
| pyproject.toml | ||
| README.md | ||
| setup.py | ||
| tree-sitter.json | ||
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