typescript-go icon indicating copy to clipboard operation
typescript-go copied to clipboard

Staging repo for development of native port of TypeScript

Results 434 typescript-go issues
Sort by recently updated
recently updated
newest added

Co-authored with @gun-yu as a result of their changes (https://github.com/microsoft/typescript-go/pull/1876) being merged in this PR ## Motivation This PR adds Plug'n'Play support natively to Typescript Go, following this issue: https://github.com/microsoft/typescript-go/issues/460...

## Steps to reproduce This issue occurs in the [better-auth Next.js demo](https://github.com/better-auth/better-auth/tree/main/demo/nextjs), specifically in the `organization` plugin callback. **Original Repository:** https://github.com/better-auth/better-auth/tree/main/demo/nextjs **Repro (extracted demo folder with tsgo config, without any...

Domain: Type Checking

A bunch of generic types ( we use SStruct as a custom alternative to zod ) refuse to become inferred due to maximum length. ## Steps to reproduce ``` workspaces/api-v0/src/schema/socket-report.ts:17:14...

Needs More Info

## Steps to reproduce This is a contrived reproduction from a larger codebase. It looks like the error happens on line 24 where the inferred type of `getItem(options.uuid)` is always...

## Stack trace I'm hoping this is useful to find a bug somewhere, otherwise I have no reproduction because it's simply crashing for our codebase on my first try. ```...

Crash

This PR fixes the missing `TS5074` error when `--incremental` is used without required conditions. Fixes: #2083

Tracking the crash mentioned in #1535. ## Stack trace ``` panic: ManyToManySet.Set: key already exists: c:/users/gabrielaa/code/.../removable.d.ts goroutine 1 [running]: github.com/microsoft/typescript-go/internal/collections.(*ManyToManySet[...]).Set(0xa65e80, {0xc002fc0700, 0x5d}, 0xc000c07800) C:/Users/gabrielaa/code/typescript-go/internal/collections/manytomanyset.go:31 +0x33a github.com/microsoft/typescript-go/internal/incremental.newSnapshotForProgram(0xc0000036c0, 0x0, 0x0) C:/Users/gabrielaa/code/typescript-go/internal/incremental/snapshot.go:373 +0x572...

Crash
Domain: Program

This PR implements folding ranges in the lsp. tsserver also had hint spans while lsp doesn't so I have combined those tests into folding tests.

## Steps to reproduce ``` tsgo -b --verbose --stopBuildOnErrors ``` ## Behavior with `[email protected]` Stops building other projects ( 30+ in my monorepo ) when one project has errors ##...

Domain: Build Mode
Needs More Info