{"id":26206966,"url":"https://github.com/microsoft/typescript-go","last_synced_at":"2025-05-13T20:05:21.911Z","repository":{"id":281906261,"uuid":"860100131","full_name":"microsoft/typescript-go","owner":"microsoft","description":"Staging repo for development of native port of TypeScript","archived":false,"fork":false,"pushed_at":"2025-05-06T19:05:16.000Z","size":60468,"stargazers_count":19511,"open_issues_count":73,"forks_count":591,"subscribers_count":90,"default_branch":"main","last_synced_at":"2025-05-06T19:52:16.425Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/microsoft.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":"SUPPORT.md","governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-09-19T20:25:12.000Z","updated_at":"2025-05-06T19:05:20.000Z","dependencies_parsed_at":"2025-05-06T02:07:58.116Z","dependency_job_id":null,"html_url":"https://github.com/microsoft/typescript-go","commit_stats":null,"previous_names":["microsoft/typescript-go"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoft%2Ftypescript-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoft%2Ftypescript-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoft%2Ftypescript-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoft%2Ftypescript-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/microsoft","download_url":"https://codeload.github.com/microsoft/typescript-go/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254020477,"owners_count":22000750,"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":[],"created_at":"2025-03-12T05:20:48.755Z","updated_at":"2025-05-13T20:05:16.902Z","avatar_url":"https://github.com/microsoft.png","language":"Go","readme":"# TypeScript 7\n\n[Not sure what this is? Read the announcement post!](https://devblogs.microsoft.com/typescript/typescript-native-port/)\n\nThis repo is very much under active development; as such there are no published artifacts at this time.\nInterested developers can clone and run locally to try out things as they become available.\n\n## How to Build and Run\n\nThis repo uses [Go 1.24 or higher](https://go.dev/dl/), [Node.js with npm](https://nodejs.org/), and [`hereby`](https://www.npmjs.com/package/hereby).\n\nFor tests and code generation, this repo contains a git submodule to the main TypeScript repo pointing to the commit being ported.\nWhen cloning, you'll want to clone with submodules:\n\n```sh\ngit clone --recurse-submodules https://github.com/microsoft/typescript-go.git\n```\n\nIf you have already cloned the repo, you can initialize the submodule with:\n\n```sh\ngit submodule update --init --recursive\n```\n\nWith the submodule in place and `npm ci`, you can run tasks via `hereby`, similar to the TypeScript repo:\n\n```sh\nhereby build          # Verify that the project builds\nhereby test           # Run all tests\nhereby install-tools  # Install additional tools such as linters\nhereby lint           # Run all linters\nhereby format         # Format all code\nhereby generate       # Generate all Go code (e.g. diagnostics, committed to repo)\n```\n\nAdditional tasks are a work in progress.\n\n`hereby` is not required to work on the repo; the regular `go` tooling (e.g., `go build`, `go test ./...`) will work as expected.\n`hereby` tasks are provided as a convenience for those familiar with the TypeScript repo.\n\n### Running `tsgo`\n\nAfter running `hereby build`, you can run `built/local/tsgo`, which behaves mostly the same as `tsc` (respects tsconfig, but also prints out perf stats).\nThis is mainly a testing entry point; for higher fidelity with regular `tsc`, run `tsgo tsc [flags]`, which behaves more similarly to `tsc`.\n\n### Running LSP Prototype\n\nTo try the prototype LSP experience:\n\n* Run VS Code in the repo workspace (`code .`)\n* Copy `.vscode/launch.template.json` to `.vscode/launch.json`\n* \u003ckbd\u003eF5\u003c/kbd\u003e (or `Debug: Start Debugging` from the command palette)\n\nThis will launch a new VS Code instance which uses the Corsa LS as the backend. If correctly set up, you should see \"typescript-go\" as an option in the Output pane:\n\n![LSP Prototype Screenshot](.github/ls-screenshot.png)\n\n\n## What Works So Far?\n\nThis is still a work in progress and is not yet at full feature parity with TypeScript. Bugs may exist. Please check this list carefully before logging a new issue or assuming an intentional change.\n\nStatus overview:\n\n * Program creation (read `lib`, `target`, `reference`, `import`, `files`, `include`, and `exclude`): **done**. You should see the *same files*, with modules resolved to the *same locations*, as in a TypeScript 5.8 (TS5.8) invocation\n   * Not all resolution modes are supported yet\n * Parsing/scanning (read source text and determine syntax shape): **done**. You should see the exact same *syntax errors* as in a TS5.8 invocation\n * Commandline and `tsconfig.json` parsing: **mostly done**. Note that the entry point is slightly different (for now)\n * Type resolution (resolve computed types to a concrete internal representation): **done**. You should see the same types as in TS5.8\n * Type checking (check for problems in functions, classes, and statements): **done**. You should see the same errors, in the same locations, with the same messages, as TS 5.8\n    * Types printback in errors may display slightly differently; this is in progress\n * JavaScript-specific inference and JS Doc: **not ready**\n * JSX: **not ready**\n * Declaration emit: **not ready**. Coming soon!\n * Emit (JS output): **in progress**. `target: esnext` (minimal downleveling) is well-supported but other targets may have gaps\n * Watch mode: **prototype** (watches the correct files and rebuilds, but doesn't do incremental rechecking)\n * Build mode / project references: **not ready**\n * Incremental build: **not ready**\n * Language service (LSP): **prototype** only, expect minimal functionality (errors, hover, go to def). More features soon!\n * API: **not ready**\n\nDefinitions:\n\n * **done** aka \"believed done\": We're not currently aware of any deficits or major left work to do. OK to log bugs\n * **in progress**: currently being worked on; some features may work and some might not. OK to log panics, but nothing else please\n * **prototype**: proof-of-concept only; do not log bugs\n * **not ready**: either haven't even started yet, or far enough from ready that you shouldn't bother messing with it yet\n\n## Other Notes\n\nLong-term, we expect this repo is that its contents will be merged into `microsoft/TypeScript`.\nAs a result, the repo and issue tracker for typescript-go will eventually be closed, so treat discussions/issues accordingly.\n\nFor a list of intentional changes with respect to TypeScript 5.7, see CHANGES.md.\n\n## Contributing\n\nThis project welcomes contributions and suggestions.  Most contributions require you to agree to a\nContributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us\nthe rights to use your contribution. For details, visit [Contributor License Agreements](https://cla.opensource.microsoft.com).\n\nWhen you submit a pull request, a CLA bot will automatically determine whether you need to provide\na CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions\nprovided by the bot. You will only need to do this once across all repos using our CLA.\n\nThis project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).\nFor more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or\ncontact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.\n\n## Trademarks\n\nThis project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft\ntrademarks or logos is subject to and must follow\n[Microsoft's Trademark \u0026 Brand Guidelines](https://www.microsoft.com/legal/intellectualproperty/trademarks/usage/general).\nUse of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship.\nAny use of third-party trademarks or logos are subject to those third-party's policies.\n","funding_links":[],"categories":["Go","TypeScript","JavaScript框架","JavaScript Targets","others"],"sub_categories":["Other dialects and variants","大语言对话模型及数据"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicrosoft%2Ftypescript-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmicrosoft%2Ftypescript-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicrosoft%2Ftypescript-go/lists"}