microsoft / typescript-go
Summary
TypeScript 7, a native port of TypeScript, is now available in a preview build on npm as `@typescript/native-preview` and includes a preview VS Code extension. This version aims for feature parity with TypeScript 6.0 but is still under development. Key features like program creation, parsing/scanning, command-line and `tsconfig.json` parsing, type resolution, type checking, JSX, emit (JS output), build mode, and incremental build are marked as "done." However, JavaScript-specific inference and JSDoc, declaration emit for JavaScript files, and the language service (LSP) are still "in progress." Watch mode is currently a "prototype," and the API is "not ready." Long-term plans include merging this repository into `microsoft/TypeScript`.
Key takeaway
For software engineers evaluating future TypeScript tooling, you should experiment with the TypeScript 7 native preview to understand its current capabilities and limitations. While core features are stable, be aware that JavaScript inference, declaration emit for JS, and the full API are not yet complete. Your feedback on existing bugs is welcome, but avoid reporting issues on "prototype" or "not ready" features.
Key insights
TypeScript 7 offers a native port with significant progress towards feature parity with TypeScript 6.0.
Principles
- Prioritize core functionality first
- Maintain syntax and type compatibility
Method
The development process categorizes features into "done," "in progress," "prototype," and "not ready" to manage expectations and bug reporting for the native port.
In practice
- Install `@typescript/native-preview` for early access
- Enable `js/ts.experimental.useTsgo` in VS Code
Topics
- TypeScript Native Port
- Go Programming Language
- @typescript/native-preview
- VS Code Integration
- Type Checking
Best for: Software Engineer
Related on AIssential
Editorial summary, takeaway, and curation by AIssential. Original article published by Github Trending: All languages.