Staging repo for development of native port of TypeScript
  • TypeScript 63.1%
  • Go 33.4%
  • jsonc 3.4%
  • JavaScript 0.1%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Anders Hejlsberg 73868c8588
Some checks failed
CI / build (push) Has been cancelled
CI / release-build (push) Has been cancelled
CI / extension (push) Has been cancelled
CI / test (concurrent test programs) (push) Has been cancelled
CI / test (ubuntu-latest) (push) Has been cancelled
CI / test (macos-latest) (push) Has been cancelled
CI / test (windows-latest) (push) Has been cancelled
CI / test (no submodules) (push) Has been cancelled
CI / test (noembed) (push) Has been cancelled
CI / test (race mode) (push) Has been cancelled
CI / lint (ubuntu-latest) (push) Has been cancelled
CI / lint (noembed) (push) Has been cancelled
CI / lint (windows-latest) (push) Has been cancelled
CI / format (push) Has been cancelled
CI / generate (push) Has been cancelled
CI / tidy (push) Has been cancelled
CI / smoke (push) Has been cancelled
CI / misc (push) Has been cancelled
Code Scanning - Action / CodeQL-Build (push) Has been cancelled
CI / required (push) Has been cancelled
Fix grammar checking for in and out modifiers in @template tags (#4100)
2026-05-30 19:52:40 +00:00
.devcontainer Add GH CLI to devcontainer.json. (#3308) 2026-03-31 23:56:02 +00:00
.github Add PR template for Copilot (#3773) 2026-05-08 18:12:00 +00:00
.vscode Add local test launch to launch template (#3816) 2026-05-12 18:48:16 +00:00
_build Switch 1ESPT pipelines to 1ESPT-AzureLinux3 (#2031) 2025-11-06 23:04:14 +00:00
_extension Fix configuration lookups and prefer saving as js/ts (#4054) 2026-05-27 20:57:16 +00:00
_packages/native-preview Restore JSDoc namespace declarations (#4073) 2026-05-30 12:28:11 +00:00
_scripts Restore JSDoc namespace declarations (#4073) 2026-05-30 12:28:11 +00:00
_submodules Update submodule (#3337) 2026-04-03 17:52:40 +00:00
_tools Update dependencies (#3398) 2026-04-17 19:09:03 +00:00
cmd/tsgo Don't even start process alive check if platform does not support it (#3762) 2026-05-08 15:29:15 +00:00
internal Fix grammar checking for in and out modifiers in @template tags (#4100) 2026-05-30 19:52:40 +00:00
testdata Fix grammar checking for in and out modifiers in @template tags (#4100) 2026-05-30 19:52:40 +00:00
.custom-gcl.yml Update dependencies (#3136) 2026-03-18 17:46:40 +00:00
.dprint.jsonc Move @typescript/api and @typescript/ast into @typescript/native-preview for publishing (#3430) 2026-04-22 19:54:38 +00:00
.gitattributes Add gitattributes 2024-09-30 16:33:48 -07:00
.gitignore Add submoduleTriaged.txt (#3452) 2026-04-20 21:53:01 +00:00
.gitmodules Update submodule to new upstream target porting branch (#702) 2025-03-27 21:50:53 +00:00
.golangci.yml Update dependencies (#3398) 2026-04-17 19:09:03 +00:00
.gulp.js Basic instructions 2024-10-16 13:40:38 -07:00
CHANGES.md Restore JSDoc namespace declarations (#4073) 2026-05-30 12:28:11 +00:00
CODE_OF_CONDUCT.md Initial commit 2024-09-30 16:26:43 -07:00
CONTRIBUTING.md Warn against AI botting (#3997) 2026-05-20 17:14:57 +00:00
go.mod Update dependencies (#3398) 2026-04-17 19:09:03 +00:00
go.sum Update dependencies (#3398) 2026-04-17 19:09:03 +00:00
Herebyfile.mjs Emit publish-order.json with per-package npm dist-tag (#3977) 2026-05-19 15:36:13 +00:00
LICENSE Move LICENSE.txt to LICENSE (#220) 2025-01-13 10:02:32 -08:00
NOTICE.txt Update dependencies (#3398) 2026-04-17 19:09:03 +00:00
package-lock.json Update vscode-tas-client. (#3752) 2026-05-07 23:09:51 +00:00
package.json Update dependencies (#3398) 2026-04-17 19:09:03 +00:00
README.md Update README with current jsdoc/declarations status (#3835) 2026-05-14 16:05:33 +00:00
SECURITY.md Update SECURITY.md (#2449) 2026-01-07 19:54:32 +00:00
SUPPORT.md Basic instructions 2024-10-16 13:40:38 -07:00

TypeScript 7

Not sure what this is? Read the announcement post!

Preview

A preview build is available on npm as @typescript/native-preview.

npm install @typescript/native-preview
npx tsgo # Use this as you would tsc.

A preview VS Code extension is available on the VS Code marketplace.

To use this, set this in your VS Code settings:

{
    "js/ts.experimental.useTsgo": true
}

What Works So Far?

This 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.

Feature Status Notes
Program creation done Same files and module resolution as TS 6.0. Not all resolution modes supported yet.
Parsing/scanning done Exact same syntax errors as TS 6.0
Commandline and tsconfig.json parsing done Done, though tsconfig errors may not be as helpful.
Type resolution done Same types as TS 6.0.
Type checking done Same errors, locations, and messages as TS 6.0. Types printback in errors may display differently.
JavaScript-specific inference and JSDoc done Complete, but intentionally lacking some features. Declaration emit differs greatly, intentionally, to be closer to TS declarations.
JSX done -
Declaration emit done -
Emit (JS output) done -
Watch mode prototype Watches files and rebuilds, but no incremental rechecking. Not optimized.
Build mode / project references done -
Incremental build done -
Language service (LSP) in progress Nearly all features implemented.
API not ready -

Definitions:

  • done aka "believed done": We're not currently aware of any deficits or major work left to do. OK to log bugs
  • in progress: currently being worked on; some features may work and some might not. OK to log panics, but nothing else please
  • prototype: proof-of-concept only; do not log bugs
  • not ready: either haven't even started yet, or far enough from ready that you shouldn't bother messing with it yet

Other Notes

Long-term, we expect that this repo and its contents will be merged into microsoft/TypeScript. As a result, the repo and issue tracker for typescript-go will eventually be closed, so treat discussions/issues accordingly.

For a list of intentional changes with respect to TypeScript 6.0, see CHANGES.md.

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit Contributor License Agreements.

When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

Trademarks

This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow Microsoft's Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party's policies.