tree-sitter-typescript


Nametree-sitter-typescript JSON
Version 0.21.1 PyPI version JSON
download
home_pageNone
SummaryTypeScript and TSX grammars for tree-sitter
upload_time2024-05-06 12:33:37
maintainerNone
docs_urlNone
authorNone
requires_python>=3.8
licenseMIT
keywords incremental parsing tree-sitter typescript tsx
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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.8",
    "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/5d/e7/55adfebc2691389201cc9c8cddbce98d9cd4c51d5bba1bd1fff1efb3e2a0/tree-sitter-typescript-0.21.1.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.21.1",
    "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": "1d90bf89bcd9f829b0ebc24ba367809cf5951d57371069b2da27dd929a2e74dc",
                "md5": "02afb00d0c2c150f52bd30b0ff66da76",
                "sha256": "7a46ebbd94532cd8c86f347f82f62e760eb155a7472ced3626a762c39027f272"
            },
            "downloads": -1,
            "filename": "tree_sitter_typescript-0.21.1-cp38-abi3-macosx_10_9_x86_64.whl",
            "has_sig": false,
            "md5_digest": "02afb00d0c2c150f52bd30b0ff66da76",
            "packagetype": "bdist_wheel",
            "python_version": "cp38",
            "requires_python": ">=3.8",
            "size": 429979,
            "upload_time": "2024-05-06T12:33:26",
            "upload_time_iso_8601": "2024-05-06T12:33:26.743608Z",
            "url": "https://files.pythonhosted.org/packages/1d/90/bf89bcd9f829b0ebc24ba367809cf5951d57371069b2da27dd929a2e74dc/tree_sitter_typescript-0.21.1-cp38-abi3-macosx_10_9_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "4714b09116db57d96d1f79a0cbdc67e0661158621804f33d3c4306d1a80c9a09",
                "md5": "727d881f48b0e33f618a5be75659ed8c",
                "sha256": "27170954e5d6f59aeb9c3856b8ad149489f741ce83923bfe8f5eb22cb63888b7"
            },
            "downloads": -1,
            "filename": "tree_sitter_typescript-0.21.1-cp38-abi3-macosx_11_0_arm64.whl",
            "has_sig": false,
            "md5_digest": "727d881f48b0e33f618a5be75659ed8c",
            "packagetype": "bdist_wheel",
            "python_version": "cp38",
            "requires_python": ">=3.8",
            "size": 463377,
            "upload_time": "2024-05-06T12:33:28",
            "upload_time_iso_8601": "2024-05-06T12:33:28.030011Z",
            "url": "https://files.pythonhosted.org/packages/47/14/b09116db57d96d1f79a0cbdc67e0661158621804f33d3c4306d1a80c9a09/tree_sitter_typescript-0.21.1-cp38-abi3-macosx_11_0_arm64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "bcd6eb0ad1ab523465d0955094ff721ed48ff8faef12a2515f30d091d96015d1",
                "md5": "7d5f9c1ec1529fa799adc9dde2fed978",
                "sha256": "c43b7496254d086d756d57c148505e9f7f6c12ff8f8307a18554438d251fa934"
            },
            "downloads": -1,
            "filename": "tree_sitter_typescript-0.21.1-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl",
            "has_sig": false,
            "md5_digest": "7d5f9c1ec1529fa799adc9dde2fed978",
            "packagetype": "bdist_wheel",
            "python_version": "cp38",
            "requires_python": ">=3.8",
            "size": 530096,
            "upload_time": "2024-05-06T12:33:29",
            "upload_time_iso_8601": "2024-05-06T12:33:29.757048Z",
            "url": "https://files.pythonhosted.org/packages/bc/d6/eb0ad1ab523465d0955094ff721ed48ff8faef12a2515f30d091d96015d1/tree_sitter_typescript-0.21.1-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "8d03ab2fef61145df875047b36980479df59b4f920ae352d14af01f082b4b666",
                "md5": "23f86ae21e0adb87442102bd44ededb3",
                "sha256": "78bcf50a786ff7ff0ac034b16f34c77b526aeed5d34c42038f0a8ee4dcf6b42e"
            },
            "downloads": -1,
            "filename": "tree_sitter_typescript-0.21.1-cp38-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "has_sig": false,
            "md5_digest": "23f86ae21e0adb87442102bd44ededb3",
            "packagetype": "bdist_wheel",
            "python_version": "cp38",
            "requires_python": ">=3.8",
            "size": 493402,
            "upload_time": "2024-05-06T12:33:30",
            "upload_time_iso_8601": "2024-05-06T12:33:30.772512Z",
            "url": "https://files.pythonhosted.org/packages/8d/03/ab2fef61145df875047b36980479df59b4f920ae352d14af01f082b4b666/tree_sitter_typescript-0.21.1-cp38-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": "f7b121535955e0c933f01f1c34f2af13aeb3e5575eb4b3153541b44dbb99a15d",
                "md5": "fff6c602702a447972780f372c56bb82",
                "sha256": "256d6a3505680c106639c654e4830a844a47a53e002958124d2a22a8d8fabe1e"
            },
            "downloads": -1,
            "filename": "tree_sitter_typescript-0.21.1-cp38-abi3-musllinux_1_1_aarch64.whl",
            "has_sig": false,
            "md5_digest": "fff6c602702a447972780f372c56bb82",
            "packagetype": "bdist_wheel",
            "python_version": "cp38",
            "requires_python": ">=3.8",
            "size": 532650,
            "upload_time": "2024-05-06T12:33:32",
            "upload_time_iso_8601": "2024-05-06T12:33:32.468038Z",
            "url": "https://files.pythonhosted.org/packages/f7/b1/21535955e0c933f01f1c34f2af13aeb3e5575eb4b3153541b44dbb99a15d/tree_sitter_typescript-0.21.1-cp38-abi3-musllinux_1_1_aarch64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a764739554d4045651862ddd1fb47ddb387879a5c5e8541bc64ca4a384b29ad5",
                "md5": "623ea18d66a418796911be1362e07998",
                "sha256": "d148399bb41b894e025a8e05ef858471f3ffc41ff26d200e76452997d273075b"
            },
            "downloads": -1,
            "filename": "tree_sitter_typescript-0.21.1-cp38-abi3-musllinux_1_1_x86_64.whl",
            "has_sig": false,
            "md5_digest": "623ea18d66a418796911be1362e07998",
            "packagetype": "bdist_wheel",
            "python_version": "cp38",
            "requires_python": ">=3.8",
            "size": 493521,
            "upload_time": "2024-05-06T12:33:33",
            "upload_time_iso_8601": "2024-05-06T12:33:33.707713Z",
            "url": "https://files.pythonhosted.org/packages/a7/64/739554d4045651862ddd1fb47ddb387879a5c5e8541bc64ca4a384b29ad5/tree_sitter_typescript-0.21.1-cp38-abi3-musllinux_1_1_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d03bbf4d11f44af83ea9df914a9f102e537dd88b0ccb683f8a5cd86c5c402479",
                "md5": "6fc4180f01a09abd4edb0418291bdcb6",
                "sha256": "30730311251163f30527509f3c52446f197c8170e7bffae4c3a14de84b5df938"
            },
            "downloads": -1,
            "filename": "tree_sitter_typescript-0.21.1-cp38-abi3-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "6fc4180f01a09abd4edb0418291bdcb6",
            "packagetype": "bdist_wheel",
            "python_version": "cp38",
            "requires_python": ">=3.8",
            "size": 435199,
            "upload_time": "2024-05-06T12:33:35",
            "upload_time_iso_8601": "2024-05-06T12:33:35.388990Z",
            "url": "https://files.pythonhosted.org/packages/d0/3b/bf4d11f44af83ea9df914a9f102e537dd88b0ccb683f8a5cd86c5c402479/tree_sitter_typescript-0.21.1-cp38-abi3-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "5de755adfebc2691389201cc9c8cddbce98d9cd4c51d5bba1bd1fff1efb3e2a0",
                "md5": "b1f0311f51509e7bc3c8d1324c94423e",
                "sha256": "529baac41cda9a086adbffc00ecaa34fd80968ba25a9a9b34d3f74135571d3a9"
            },
            "downloads": -1,
            "filename": "tree-sitter-typescript-0.21.1.tar.gz",
            "has_sig": false,
            "md5_digest": "b1f0311f51509e7bc3c8d1324c94423e",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 1252211,
            "upload_time": "2024-05-06T12:33:37",
            "upload_time_iso_8601": "2024-05-06T12:33:37.042979Z",
            "url": "https://files.pythonhosted.org/packages/5d/e7/55adfebc2691389201cc9c8cddbce98d9cd4c51d5bba1bd1fff1efb3e2a0/tree-sitter-typescript-0.21.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-05-06 12:33:37",
    "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"
}
        
Elapsed time: 0.23602s