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

I'm just a user so please feel free to ask for more context if I missed something. Effect exports a number of namespaces from the main package for easy access....

Crash

## Steps to reproduce ``` D:\Throwaway\corsarepro>tsc a.js error TS6504: File 'a.js' is a JavaScript file. Did you mean to enable the 'allowJs' option? The file is in the program because:...

bug

## Steps to reproduce ```ts /// ``` ## Behavior with `[email protected]` error: ``` D:\Throwaway\corsarepro>tsc a.ts:1:22 - error TS6053: File 'D:/Throwaway/corsarepro/notfound.d.ts' not found. 1 /// ~~~~~~~~~~~~~ Found 1 error in a.ts:1...

bug

Ports all missing collision detection checks from TypeScript's `checkCollisionsForDeclarationName` function to the Go implementation. ## Changes Made - **WeakMap/WeakSet collision detection**: Records potential collisions when WeakMap/WeakSet identifiers are declared (for...

## Steps to reproduce ``` function test() { let WeakMap; ~~~~~~~ !!! error TS18027: Compiler reserves name 'WeakMap' when emitting private identifier downlevel. let WeakSet; ~~~~~~~ !!! error TS18027: Compiler...

bug

## Steps to reproduce a.ts ```ts export const n = 0; ``` ## Behavior with `[email protected]` ``` D:\Throwaway\corsarepro>tsc --module none a.ts a.ts:1:1 - error TS1148: Cannot use imports, exports, or...

bug

## Steps to reproduce ``` D:\Throwaway\corsarepro>tsc --incremental a.ts error TS5074: Option '--incremental' can only be specified using tsconfig, emitting to single file or when option '--tsBuildInfoFile' is specified. Found 1...

bug

With same code, just replacing tsc with tsgo gives me multiple TS 2742 errors like these ``` error TS2742: The inferred type of 'router' cannot be named without a reference...

Domain: Declaration Emit

Fixes panic when pressing Enter in TypeScript files. The panic occurred when `deriveActualIndentationFromList` accessed nil nodes in AST node lists. ## Root Cause The stack trace showed the panic was...

## Stack trace ``` panic handling request textDocument/onTypeFormatting runtime error: invalid memory address or nil pointer dereference goroutine 15626 [running]: runtime/debug.Stack() runtime/debug/stack.go:26 +0x5e github.com/microsoft/typescript-go/internal/lsp.(*Server).recover(0xc00019adc0, 0xc01a052ae0) github.com/microsoft/typescript-go/internal/lsp/server.go:571 +0x58 panic({0xb5c6a0?, 0x14bd140?}) runtime/panic.go:783...

Crash