# tree-sitter-typescript
[![CI][ci]](https://github.com/tree-sitter/tree-sitter-typescript/actions/workflows/ci.yml)
[![discord][discord]](https://discord.gg/w7nTvsVJhm)
[![matrix][matrix]](https://matrix.to/#/#tree-sitter-chat:matrix.org)
[![crates][crates]](https://crates.io/crates/tree-sitter-typescript)
[![npm][npm]](https://www.npmjs.com/package/tree-sitter-typescript)
[![pypi][pypi]](https://pypi.org/project/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:
```js
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.
[tree-sitter]: https://github.com/tree-sitter/tree-sitter
[flow]: https://flow.org/en/
References
- [TypeScript Language Spec](https://github.com/microsoft/TypeScript/blob/main/doc/spec-ARCHIVED.md)
[ci]: https://img.shields.io/github/actions/workflow/status/tree-sitter/tree-sitter-typescript/ci.yml?logo=github&label=CI
[discord]: https://img.shields.io/discord/1063097320771698699?logo=discord&label=discord
[matrix]: https://img.shields.io/matrix/tree-sitter-chat%3Amatrix.org?logo=matrix&label=matrix
[npm]: https://img.shields.io/npm/v/tree-sitter-typescript?logo=npm
[crates]: https://img.shields.io/crates/v/tree-sitter-typescript?logo=rust
[pypi]: https://img.shields.io/pypi/v/tree-sitter-typescript?logo=pypi&logoColor=ffd242
Raw data
{
"_id": null,
"home_page": null,
"name": "tree-sitter-typescript",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.9",
"maintainer_email": null,
"keywords": "incremental, parsing, tree-sitter, typescript, tsx",
"author": null,
"author_email": "Max Brunsfeld <maxbrunsfeld@gmail.com>, Amaan Qureshi <amaanq12@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/1e/fc/bb52958f7e399250aee093751e9373a6311cadbe76b6e0d109b853757f35/tree_sitter_typescript-0.23.2.tar.gz",
"platform": null,
"description": "# tree-sitter-typescript\n\n[![CI][ci]](https://github.com/tree-sitter/tree-sitter-typescript/actions/workflows/ci.yml)\n[![discord][discord]](https://discord.gg/w7nTvsVJhm)\n[![matrix][matrix]](https://matrix.to/#/#tree-sitter-chat:matrix.org)\n[![crates][crates]](https://crates.io/crates/tree-sitter-typescript)\n[![npm][npm]](https://www.npmjs.com/package/tree-sitter-typescript)\n[![pypi][pypi]](https://pypi.org/project/tree-sitter-typescript)\n\nTypeScript and TSX grammars for [tree-sitter][].\n\nBecause TSX and TypeScript are actually two different dialects, this module defines two grammars. Require them as follows:\n\n```js\nrequire(\"tree-sitter-typescript\").typescript; // TypeScript grammar\nrequire(\"tree-sitter-typescript\").tsx; // TSX grammar\n```\n\nFor Javascript files with [flow] type annotations you can use the `tsx` parser.\n\n[tree-sitter]: https://github.com/tree-sitter/tree-sitter\n[flow]: https://flow.org/en/\n\nReferences\n\n- [TypeScript Language Spec](https://github.com/microsoft/TypeScript/blob/main/doc/spec-ARCHIVED.md)\n\n[ci]: https://img.shields.io/github/actions/workflow/status/tree-sitter/tree-sitter-typescript/ci.yml?logo=github&label=CI\n[discord]: https://img.shields.io/discord/1063097320771698699?logo=discord&label=discord\n[matrix]: https://img.shields.io/matrix/tree-sitter-chat%3Amatrix.org?logo=matrix&label=matrix\n[npm]: https://img.shields.io/npm/v/tree-sitter-typescript?logo=npm\n[crates]: https://img.shields.io/crates/v/tree-sitter-typescript?logo=rust\n[pypi]: https://img.shields.io/pypi/v/tree-sitter-typescript?logo=pypi&logoColor=ffd242\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "TypeScript and TSX grammars for tree-sitter",
"version": "0.23.2",
"project_urls": {
"Homepage": "https://github.com/tree-sitter/tree-sitter-typescript"
},
"split_keywords": [
"incremental",
" parsing",
" tree-sitter",
" typescript",
" tsx"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "28954c00680866280e008e81dd621fd4d3f54aa3dad1b76b857a19da1b2cc426",
"md5": "71368ce9a9ad396a8ce190d439f94278",
"sha256": "3cd752d70d8e5371fdac6a9a4df9d8924b63b6998d268586f7d374c9fba2a478"
},
"downloads": -1,
"filename": "tree_sitter_typescript-0.23.2-cp39-abi3-macosx_10_9_x86_64.whl",
"has_sig": false,
"md5_digest": "71368ce9a9ad396a8ce190d439f94278",
"packagetype": "bdist_wheel",
"python_version": "cp39",
"requires_python": ">=3.9",
"size": 286677,
"upload_time": "2024-11-11T02:35:58",
"upload_time_iso_8601": "2024-11-11T02:35:58.839810Z",
"url": "https://files.pythonhosted.org/packages/28/95/4c00680866280e008e81dd621fd4d3f54aa3dad1b76b857a19da1b2cc426/tree_sitter_typescript-0.23.2-cp39-abi3-macosx_10_9_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "8f2f1f36fda564518d84593f2740d5905ac127d590baf5c5753cef2a88a89c15",
"md5": "4765821297184933131f7d55f7638c16",
"sha256": "c7cc1b0ff5d91bac863b0e38b1578d5505e718156c9db577c8baea2557f66de8"
},
"downloads": -1,
"filename": "tree_sitter_typescript-0.23.2-cp39-abi3-macosx_11_0_arm64.whl",
"has_sig": false,
"md5_digest": "4765821297184933131f7d55f7638c16",
"packagetype": "bdist_wheel",
"python_version": "cp39",
"requires_python": ">=3.9",
"size": 302008,
"upload_time": "2024-11-11T02:36:00",
"upload_time_iso_8601": "2024-11-11T02:36:00.733248Z",
"url": "https://files.pythonhosted.org/packages/8f/2f/1f36fda564518d84593f2740d5905ac127d590baf5c5753cef2a88a89c15/tree_sitter_typescript-0.23.2-cp39-abi3-macosx_11_0_arm64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "962d975c2dad292aa9994f982eb0b69cc6fda0223e4b6c4ea714550477d8ec3a",
"md5": "024f1fa69565a387e990ca3f2f3fffa6",
"sha256": "4b1eed5b0b3a8134e86126b00b743d667ec27c63fc9de1b7bb23168803879e31"
},
"downloads": -1,
"filename": "tree_sitter_typescript-0.23.2-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl",
"has_sig": false,
"md5_digest": "024f1fa69565a387e990ca3f2f3fffa6",
"packagetype": "bdist_wheel",
"python_version": "cp39",
"requires_python": ">=3.9",
"size": 351987,
"upload_time": "2024-11-11T02:36:02",
"upload_time_iso_8601": "2024-11-11T02:36:02.669741Z",
"url": "https://files.pythonhosted.org/packages/96/2d/975c2dad292aa9994f982eb0b69cc6fda0223e4b6c4ea714550477d8ec3a/tree_sitter_typescript-0.23.2-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "49d1a71c36da6e2b8a4ed5e2970819b86ef13ba77ac40d9e333cb17df6a2c5db",
"md5": "4bd97a5b2e069e99949572a595524740",
"sha256": "e96d36b85bcacdeb8ff5c2618d75593ef12ebaf1b4eace3477e2bdb2abb1752c"
},
"downloads": -1,
"filename": "tree_sitter_typescript-0.23.2-cp39-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
"has_sig": false,
"md5_digest": "4bd97a5b2e069e99949572a595524740",
"packagetype": "bdist_wheel",
"python_version": "cp39",
"requires_python": ">=3.9",
"size": 344960,
"upload_time": "2024-11-11T02:36:04",
"upload_time_iso_8601": "2024-11-11T02:36:04.443176Z",
"url": "https://files.pythonhosted.org/packages/49/d1/a71c36da6e2b8a4ed5e2970819b86ef13ba77ac40d9e333cb17df6a2c5db/tree_sitter_typescript-0.23.2-cp39-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "7fcbf57b149d7beed1a85b8266d0c60ebe4c46e79c9ba56bc17b898e17daf88e",
"md5": "8979f61d062aa44389e7979d64414ee1",
"sha256": "8d4f0f9bcb61ad7b7509d49a1565ff2cc363863644a234e1e0fe10960e55aea0"
},
"downloads": -1,
"filename": "tree_sitter_typescript-0.23.2-cp39-abi3-musllinux_1_2_x86_64.whl",
"has_sig": false,
"md5_digest": "8979f61d062aa44389e7979d64414ee1",
"packagetype": "bdist_wheel",
"python_version": "cp39",
"requires_python": ">=3.9",
"size": 340245,
"upload_time": "2024-11-11T02:36:06",
"upload_time_iso_8601": "2024-11-11T02:36:06.473699Z",
"url": "https://files.pythonhosted.org/packages/7f/cb/f57b149d7beed1a85b8266d0c60ebe4c46e79c9ba56bc17b898e17daf88e/tree_sitter_typescript-0.23.2-cp39-abi3-musllinux_1_2_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "8babdd84f0e2337296a5f09749f7b5483215d75c8fa9e33738522e5ed81f7254",
"md5": "fb3543e5dc0498098822360d7fcd278e",
"sha256": "3f730b66396bc3e11811e4465c41ee45d9e9edd6de355a58bbbc49fa770da8f9"
},
"downloads": -1,
"filename": "tree_sitter_typescript-0.23.2-cp39-abi3-win_amd64.whl",
"has_sig": false,
"md5_digest": "fb3543e5dc0498098822360d7fcd278e",
"packagetype": "bdist_wheel",
"python_version": "cp39",
"requires_python": ">=3.9",
"size": 278015,
"upload_time": "2024-11-11T02:36:07",
"upload_time_iso_8601": "2024-11-11T02:36:07.631861Z",
"url": "https://files.pythonhosted.org/packages/8b/ab/dd84f0e2337296a5f09749f7b5483215d75c8fa9e33738522e5ed81f7254/tree_sitter_typescript-0.23.2-cp39-abi3-win_amd64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "9fe481f9a935789233cf412a0ed5fe04c883841d2c8fb0b7e075958a35c65032",
"md5": "dc055360e89547fbcb14dcff7e77155a",
"sha256": "05db58f70b95ef0ea126db5560f3775692f609589ed6f8dd0af84b7f19f1cbb7"
},
"downloads": -1,
"filename": "tree_sitter_typescript-0.23.2-cp39-abi3-win_arm64.whl",
"has_sig": false,
"md5_digest": "dc055360e89547fbcb14dcff7e77155a",
"packagetype": "bdist_wheel",
"python_version": "cp39",
"requires_python": ">=3.9",
"size": 274052,
"upload_time": "2024-11-11T02:36:09",
"upload_time_iso_8601": "2024-11-11T02:36:09.514679Z",
"url": "https://files.pythonhosted.org/packages/9f/e4/81f9a935789233cf412a0ed5fe04c883841d2c8fb0b7e075958a35c65032/tree_sitter_typescript-0.23.2-cp39-abi3-win_arm64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "1efcbb52958f7e399250aee093751e9373a6311cadbe76b6e0d109b853757f35",
"md5": "7475404e658e88b24335d47854488304",
"sha256": "7b167b5827c882261cb7a50dfa0fb567975f9b315e87ed87ad0a0a3aedb3834d"
},
"downloads": -1,
"filename": "tree_sitter_typescript-0.23.2.tar.gz",
"has_sig": false,
"md5_digest": "7475404e658e88b24335d47854488304",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9",
"size": 773053,
"upload_time": "2024-11-11T02:36:11",
"upload_time_iso_8601": "2024-11-11T02:36:11.396366Z",
"url": "https://files.pythonhosted.org/packages/1e/fc/bb52958f7e399250aee093751e9373a6311cadbe76b6e0d109b853757f35/tree_sitter_typescript-0.23.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-11-11 02:36:11",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "tree-sitter",
"github_project": "tree-sitter-typescript",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "tree-sitter-typescript"
}