{"id":13480334,"url":"https://github.com/tree-sitter/tree-sitter-typescript","last_synced_at":"2025-05-14T00:11:22.831Z","repository":{"id":38151837,"uuid":"81508260","full_name":"tree-sitter/tree-sitter-typescript","owner":"tree-sitter","description":"TypeScript grammar for tree-sitter","archived":false,"fork":false,"pushed_at":"2025-03-28T22:18:50.000Z","size":145901,"stargazers_count":437,"open_issues_count":22,"forks_count":120,"subscribers_count":14,"default_branch":"master","last_synced_at":"2025-05-12T06:56:21.053Z","etag":null,"topics":["parser","tree-sitter","typescript"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tree-sitter.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"tree-sitter","patreon":null,"open_collective":"tree-sitter","ko_fi":"amaanq","tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"lfx_crowdfunding":null,"polar":null,"buy_me_a_coffee":null,"thanks_dev":null,"custom":null}},"created_at":"2017-02-10T00:17:51.000Z","updated_at":"2025-05-11T13:35:33.000Z","dependencies_parsed_at":"2024-02-15T00:27:11.421Z","dependency_job_id":"43b590e6-b533-4498-9f04-29f8462c4231","html_url":"https://github.com/tree-sitter/tree-sitter-typescript","commit_stats":{"total_commits":604,"total_committers":37,"mean_commits":"16.324324324324323","dds":0.7466887417218543,"last_synced_commit":"8e13e1db35b941fc57f2bd2dd4628180448c17d5"},"previous_names":[],"tags_count":42,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tree-sitter%2Ftree-sitter-typescript","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tree-sitter%2Ftree-sitter-typescript/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tree-sitter%2Ftree-sitter-typescript/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tree-sitter%2Ftree-sitter-typescript/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tree-sitter","download_url":"https://codeload.github.com/tree-sitter/tree-sitter-typescript/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253692389,"owners_count":21948316,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["parser","tree-sitter","typescript"],"created_at":"2024-07-31T17:00:37.588Z","updated_at":"2025-05-14T00:11:17.821Z","avatar_url":"https://github.com/tree-sitter.png","language":"JavaScript","funding_links":["https://github.com/sponsors/tree-sitter","https://opencollective.com/tree-sitter","https://ko-fi.com/amaanq"],"categories":["JavaScript","typescript","Grammars"],"sub_categories":["Tree Sitter Org"],"readme":"# 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/30cb20434a6b117e007a4959b2a7c16489f86069/doc/spec-ARCHIVED.md)\n\n[ci]: https://img.shields.io/github/actions/workflow/status/tree-sitter/tree-sitter-typescript/ci.yml?logo=github\u0026label=CI\n[discord]: https://img.shields.io/discord/1063097320771698699?logo=discord\u0026label=discord\n[matrix]: https://img.shields.io/matrix/tree-sitter-chat%3Amatrix.org?logo=matrix\u0026label=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\u0026logoColor=ffd242\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftree-sitter%2Ftree-sitter-typescript","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftree-sitter%2Ftree-sitter-typescript","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftree-sitter%2Ftree-sitter-typescript/lists"}