# typescript-go | Microsoft | Knowledge Base | Instagit

Staging repo for development of native port of TypeScript

GitHub Stars: 25.1k

Repository: https://github.com/microsoft/typescript-go

---

## Articles

### [Example Usage of typescript-go with a Simple Go API](/microsoft/typescript-go/example-usage-of-typescript-go-with-a-simple-go-api)

Discover example usage of typescript-go to integrate the TypeScript compiler into your Go API. Connect via pipe transport to query symbols, types, and diagnostics programmatically.

- Tags: getting-started
- Published: 2026-04-25

### [TypeScript-Go Dependencies: A Complete Breakdown of the Go Module Stack](/microsoft/typescript-go/what-kind-of-dependencies-does-typescript-go-have)

Examine the Go module stack for typescript-go. Discover its core runtime libraries, utility packages, and testing tools, all detailed in go.mod with no external native libraries.

- Tags: deep-dive
- Published: 2026-04-25

### [How to Exclude Specific Go Fields from TypeScript Generation in tsgo](/microsoft/typescript-go/how-to-exclude-specific-go-fields-from-typescript-generation)

Learn how to exclude specific Go fields from TypeScript generation using json or tsgo struct tags. Prevent unwanted fields from appearing in your generated TS declarations.

- Tags: how-to-guide
- Published: 2026-04-25

### [Error Handling in TypeScript-Go Code Generation: Generation-Time Validation and Runtime Safety](/microsoft/typescript-go/error-handling-in-typescript-go-generation)

Learn about error handling in typescript-go code generation. Discover generation-time validation and runtime safety strategies for robust Go code.

- Tags: deep-dive
- Published: 2026-04-25

### [Can typescript-go Generate Union Types from Go? A Technical Deep Dive](/microsoft/typescript-go/can-typescript-go-generate-union-types-from-go)

Discover if typescript-go generates union types from Go. This article clarifies its function as a Go-based TypeScript compiler, not a Go to TypeScript transpiler.

- Tags: deep-dive
- Published: 2026-04-25

### [Best Practices for Using typescript-go: Native TypeScript Compilation Guide](/microsoft/typescript-go/what-are-the-best-practices-for-using-typescript-go)

Master typescript-go with our native TypeScript compilation guide. Discover best practices for large codebases, IDE support, and embedding the compiler in Go apps. Optimize your workflow now.

- Tags: best-practices
- Published: 2026-04-25

### [How to Generate TypeScript Types for Nested Go Structs in typescript-go](/microsoft/typescript-go/how-to-generate-typescript-types-for-nested-go-structs)

Effortlessly generate TypeScript types for nested Go structs using typescript-go. Run the generation script to transform ast.json into accurate TypeScript interfaces.

- Tags: how-to-guide
- Published: 2026-04-25

### [Command-Line Interface Options for typescript-go: Complete Reference and Usage Guide](/microsoft/typescript-go/command-line-interface-options-for-typescript-go)

Explore the comprehensive command-line interface options for typescript-go. Learn to use standard compilation, watch mode, and project references with this complete guide.

- Tags: api-reference
- Published: 2026-04-25

### [Does typescript-go Support Generics? A Complete Technical Analysis](/microsoft/typescript-go/does-typescript-go-support-generics-in-go)

Explore how typescript-go implements TypeScript generics without adding them to Go. Understand type parameters, constraints, and inference in this technical analysis.

- Tags: deep-dive
- Published: 2026-04-25

### [How to Handle TypeScript Enums with typescript-go: Complete Compiler Pipeline Guide](/microsoft/typescript-go/how-to-handle-go-enums-with-typescript-go)

Learn how typescript-go handles Go enums with its five-stage compiler pipeline. Understand parsing, AST generation, runtime transformation, and more for seamless integration.

- Tags: tutorial
- Published: 2026-04-25

### [Performance Implications of Using TypeScript-Go: A Deep Dive into Compilation Speed and Memory Usage](/microsoft/typescript-go/what-are-the-performance-implications-of-using-typescript-go)

Explore TypeScript-Go performance implications. Discover faster compilation and efficient memory usage thanks to Go's speed and incremental builds. Analyze telemetry for insights.

- Tags: deep-dive
- Published: 2026-04-25

### [How to Contribute to the TypeScript-Go Project: A Developer's Guide](/microsoft/typescript-go/how-to-contribute-to-the-typescript-go-project)

Learn how to contribute to the microsoft/typescript-go project. Clone the repo, install Go and Node.js, build the compiler, and submit PRs for TS 6.0/7.0 issues.

- Tags: how-to-guide
- Published: 2026-04-25

### [Is TypeScript-Go Actively Maintained? Inside Microsoft's Native Compiler Port](/microsoft/typescript-go/is-typescript-go-actively-maintained)

Discover if the microsoft/typescript-go compiler port is actively maintained. Learn about its continuous updates, preview releases, and development toward full TypeScript compatibility.

- Tags: deep-dive
- Published: 2026-04-25

### [How to Use the Generated TypeScript Code with a Frontend Framework](/microsoft/typescript-go/how-to-use-the-generated-typescript-code-with-a-frontend-framework)

Learn to use generated TypeScript code with frontend frameworks. Import factory functions from microsoft/typescript-go and leverage the Emitter API to print syntax trees for seamless integration.

- Tags: how-to-guide
- Published: 2026-04-25

### [TypeScript-Go Output Format: How the tsgo CLI Emits JavaScript and Declaration Files](/microsoft/typescript-go/what-is-the-output-format-of-typescript-go)

Explore TypeScript-Go output formats. Discover how the tsgo CLI emits JavaScript, declaration files, and more, leveraging official TypeScript compiler logic for consistent results.

- Tags: how-to-guide
- Published: 2026-04-25

### [Does TypeScript-Go Support Complex Go Types Like Channels or Functions?](/microsoft/typescript-go/does-typescript-go-support-complex-go-types-like-channels-or-functions)

Explore whether typescript-go supports complex Go types like channels or functions. Understand its limitations and capabilities for Go type syntax.

- Tags: deep-dive
- Published: 2026-04-25

### [How to Configure typescript-go for Specific Go Packages: ATA Setup Guide](/microsoft/typescript-go/how-to-configure-typescript-go-for-specific-go-packages)

Learn to configure typescript-go for specific Go packages by updating tsconfig.json. Automatically acquire Go types with ATA for tailored development.

- Tags: how-to-guide
- Published: 2026-04-25

### [TypeScript-Go Limitations: Critical Gaps in the Native Corsa Compiler](/microsoft/typescript-go/what-are-the-limitations-of-typescript-go)

Explore TypeScript-Go limitations including its lack of a public Go API, read-only file system, and incomplete features for Language Service, JSDoc, and declaration emit.

- Tags: deep-dive
- Published: 2026-04-25

### [How to Integrate typescript-go into an Existing Go Project: 3 Methods Explained](/microsoft/typescript-go/how-to-integrate-typescript-go-into-an-existing-go-project)

Integrate typescript-go into your existing Go project using 3 methods: tsg CLI, embedding the compiler, or the JSON-RPC API. Boost your Go development today.

- Tags: how-to-guide
- Published: 2026-04-25

### [Can typescript-go Generate TypeScript Interfaces from Go Structs?](/microsoft/typescript-go/can-typescript-go-generate-typescript-interfaces-from-go-structs)

Discover if typescript-go generates TypeScript interfaces from Go structs. Learn its true purpose: a Go implementation of the TypeScript compiler for JavaScript and declaration file generation.

- Tags: how-to-guide
- Published: 2026-04-25

### [Benefits of Using typescript-go for Go Projects: A Native TypeScript Compiler in Go](/microsoft/typescript-go/what-are-the-benefits-of-using-typescript-go-for-go-projects)

Discover the benefits of typescript-go for Go projects. This native TypeScript compiler in Go eliminates Node.js, boosting performance and simplifying integration.

- Tags: tutorial
- Published: 2026-04-25

### [How typescript-go Implements Go Type to TypeScript Type Mapping](/microsoft/typescript-go/how-does-typescript-go-handle-go-type-to-typescript-type-mapping)

Discover how typescript-go maps Go types to TypeScript types using native Go structs and bit-flag constants for a precise one-to-one representation in the internal checker package.

- Tags: deep-dive
- Published: 2026-04-25

### [Understanding typescript-go Core Functionalities: Architecture and Implementation](/microsoft/typescript-go/what-are-the-core-functionalities-of-typescript-go)

Explore typescript-go's core functionalities including its modular architecture, CLI compilation, JSON-RPC API, LSP server, and high-performance incremental builds. Discover the power of native Go for TypeScript.

- Tags: architecture
- Published: 2026-04-25

### [How to Set Up typescript-go Locally: Complete Development Guide](/microsoft/typescript-go/how-to-set-up-typescript-go-locally)

Set up typescript-go locally with this complete guide. Install Go 1.22+, clone the repo, and build the native TypeScript compiler binary for efficient development.

- Tags: how-to-guide
- Published: 2026-04-25

