TypeScript grammar for tree-sitter
Find a file
Michel Lind 75b3874edb
Include LICENSE file (#325)
This is needed by the MIT license terms

```
❯ cargo package --list | grep LICENSE
LICENSE
```

Signed-off-by: Michel Lind <salimma@fedoraproject.org>
2025-01-30 14:11:39 -08:00
.github chore: update FUNDING.yml 2025-01-25 00:33:44 -05:00
bindings build: update bindings 2024-11-10 19:53:57 -05:00
common 0.23.2 2024-11-10 21:32:53 -05:00
examples Simplify parse-examples script 2019-12-09 16:25:28 -08:00
queries fix: remove glimmer tags 2024-11-10 20:30:54 -05:00
test/corpus feat: support parenthesized expressions in decorators 2024-07-20 12:43:25 -04:00
tsx chore: regenerate 2024-11-10 20:05:49 -05:00
typescript chore: regenerate 2024-11-10 20:05:49 -05:00
.editorconfig build: update bindings 2024-11-10 19:53:57 -05:00
.gitattributes build: update bindings 2024-11-10 19:53:57 -05:00
.gitignore build: update bindings 2024-10-15 05:55:47 +00:00
binding.gyp build: update bindings 2024-09-02 17:11:52 -04:00
Cargo.lock 0.23.2 2024-11-10 21:32:53 -05:00
Cargo.toml Include LICENSE file (#325) 2025-01-30 14:11:39 -08:00
CMakeLists.txt 0.23.2 2024-11-10 21:32:53 -05:00
eslint.config.mjs build: update bindings 2024-10-15 05:55:47 +00:00
go.mod build: update bindings 2024-11-10 19:53:57 -05:00
go.sum build: update bindings 2024-11-10 19:53:57 -05:00
LICENSE build: update bindings and manifests 2024-05-06 01:05:06 -04:00
Makefile build: update bindings 2024-09-02 17:11:52 -04:00
package-lock.json 0.23.2 2024-11-10 21:32:53 -05:00
package.json 0.23.2 2024-11-10 21:32:53 -05:00
Package.resolved build: update bindings 2024-10-15 05:55:47 +00:00
Package.swift build: update bindings 2024-10-15 05:55:47 +00:00
pyproject.toml 0.23.2 2024-11-10 21:32:53 -05:00
README.md docs: fix link 2024-12-27 22:03:16 -05:00
setup.py build: update bindings 2024-09-02 17:11:52 -04:00
tree-sitter.json 0.23.2 2024-11-10 21:32:53 -05:00

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