From 7a2b5776832923aadfa4daa60aa48dee7f4ca0f8 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 16 Sep 2026 03:09:44 +0000 Subject: [PATCH 1/2] chore: update upstream metadata --- _packages/tsgo/upstream.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/_packages/tsgo/upstream.json b/_packages/tsgo/upstream.json index c7457f13..1ee34dbe 100644 --- a/_packages/tsgo/upstream.json +++ b/_packages/tsgo/upstream.json @@ -3,7 +3,7 @@ "tags": { "typescript": { "latest": "7.0.2", - "next": "7.1.0-dev.20260913.1" + "next": "7.1.0-dev.20260915.1" }, "oxlint": { "latest": "1.83.0" @@ -18,8 +18,8 @@ "gitHead": "2bd066d87f5bafd315be9f40889d0a60b9e58e0b", "provider": "typescript-go" }, - "7.1.0-dev.20260913.1": { - "gitHead": "879f9867ac455404e75759dd1739281cf6aa7f85", + "7.1.0-dev.20260915.1": { + "gitHead": "57d9528db25b8dc8375e18468a870ec3f4277d62", "provider": "typescript" } }, From 4eb5982a2744bc70ed95f2f0dbe3d72669c04280 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 16 Sep 2026 03:19:10 +0000 Subject: [PATCH 2/2] chore: generate TypeScript next tag --- .changeset/update-upstreams.md | 2 +- flake.lock | 8 ++++---- flake.nix | 2 +- shim/api/shim.go | 9 +++++++++ shim/checker/shim.go | 3 +++ typescript | 2 +- 6 files changed, 19 insertions(+), 7 deletions(-) diff --git a/.changeset/update-upstreams.md b/.changeset/update-upstreams.md index a04adeaf..6be58494 100644 --- a/.changeset/update-upstreams.md +++ b/.changeset/update-upstreams.md @@ -2,4 +2,4 @@ "@effect/tsgo": patch --- -Update the TypeScript next tag to [`typescript@next`](https://www.npmjs.com/package/typescript/v/7.1.0-dev.20260913.1), which ships [`typescript-go`](https://github.com/microsoft/typescript-go/commit/879f9867ac455404e75759dd1739281cf6aa7f85) commit `879f9867ac455404e75759dd1739281cf6aa7f85`, and update the TypeScript latest tag to [`typescript@latest`](https://www.npmjs.com/package/typescript/v/7.0.2). +Update the TypeScript next tag to [`typescript@next`](https://www.npmjs.com/package/typescript/v/7.1.0-dev.20260915.1), which ships [`typescript-go`](https://github.com/microsoft/typescript-go/commit/57d9528db25b8dc8375e18468a870ec3f4277d62) commit `57d9528db25b8dc8375e18468a870ec3f4277d62`, and update the TypeScript latest tag to [`typescript@latest`](https://www.npmjs.com/package/typescript/v/7.0.2). diff --git a/flake.lock b/flake.lock index 540e54ce..ff38c5a5 100644 --- a/flake.lock +++ b/flake.lock @@ -42,17 +42,17 @@ "typescript-src": { "flake": false, "locked": { - "lastModified": 1789157459, - "narHash": "sha256-YhSxez5zZ/ZNkM7hK6BqqT8pJKIMSsBJwXF5Q6CufLE=", + "lastModified": 1789427885, + "narHash": "sha256-jmanZXjQAa6tOrbMMQ/mQnxN8mUelpJqL2sQrcCfQu0=", "owner": "microsoft", "repo": "TypeScript", - "rev": "879f9867ac455404e75759dd1739281cf6aa7f85", + "rev": "57d9528db25b8dc8375e18468a870ec3f4277d62", "type": "github" }, "original": { "owner": "microsoft", "repo": "TypeScript", - "rev": "879f9867ac455404e75759dd1739281cf6aa7f85", + "rev": "57d9528db25b8dc8375e18468a870ec3f4277d62", "type": "github" } } diff --git a/flake.nix b/flake.nix index af2911bd..7161c6d6 100644 --- a/flake.nix +++ b/flake.nix @@ -6,7 +6,7 @@ nixpkgsUnstable.url = "github:NixOS/nixpkgs/nixos-unstable"; /* Source of truth: the next profile in `_packages/tsgo/upstream.json`. */ typescript-src = { - url = "github:microsoft/TypeScript/879f9867ac455404e75759dd1739281cf6aa7f85"; + url = "github:microsoft/TypeScript/57d9528db25b8dc8375e18468a870ec3f4277d62"; flake = false; }; }; diff --git a/shim/api/shim.go b/shim/api/shim.go index 05bab625..038ee490 100644 --- a/shim/api/shim.go +++ b/shim/api/shim.go @@ -44,10 +44,12 @@ var ErrInvalidRequest = api.ErrInvalidRequest type FormatNodeForInsertionParams = api.FormatNodeForInsertionParams type GetBaseTypeOfLiteralTypeParams = api.GetBaseTypeOfLiteralTypeParams type GetCompletionsAtPositionParams = api.GetCompletionsAtPositionParams +type GetContextualTypeForArgumentParams = api.GetContextualTypeForArgumentParams type GetContextualTypeParams = api.GetContextualTypeParams type GetDefaultProjectForFileParams = api.GetDefaultProjectForFileParams type GetDiagnosticsParams = api.GetDiagnosticsParams type GetImportAdderEditsParams = api.GetImportAdderEditsParams +type GetIndexInfoOfTypeParams = api.GetIndexInfoOfTypeParams type GetIntrinsicTypeParams = api.GetIntrinsicTypeParams type GetMemberInModuleExportsParams = api.GetMemberInModuleExportsParams type GetNonNullableTypeParams = api.GetNonNullableTypeParams @@ -113,6 +115,7 @@ const MethodGetAliasedSymbol = api.MethodGetAliasedSymbol const MethodGetAnyType = api.MethodGetAnyType const MethodGetApparentPropertiesOfType = api.MethodGetApparentPropertiesOfType const MethodGetApparentType = api.MethodGetApparentType +const MethodGetAwaitedType = api.MethodGetAwaitedType const MethodGetBaseConstraintOfType = api.MethodGetBaseConstraintOfType const MethodGetBaseTypeOfLiteralType = api.MethodGetBaseTypeOfLiteralType const MethodGetBaseTypeOfType = api.MethodGetBaseTypeOfType @@ -129,6 +132,7 @@ const MethodGetConstantValue = api.MethodGetConstantValue const MethodGetConstraintOfType = api.MethodGetConstraintOfType const MethodGetConstraintOfTypeParameter = api.MethodGetConstraintOfTypeParameter const MethodGetContextualType = api.MethodGetContextualType +const MethodGetContextualTypeForArgument = api.MethodGetContextualTypeForArgument const MethodGetDeclarationDiagnostics = api.MethodGetDeclarationDiagnostics const MethodGetDeclarationEmit = api.MethodGetDeclarationEmit const MethodGetDeclaredTypeOfSymbol = api.MethodGetDeclaredTypeOfSymbol @@ -138,6 +142,7 @@ const MethodGetDocumentationComment = api.MethodGetDocumentationComment const MethodGetESSymbolType = api.MethodGetESSymbolType const MethodGetExportSpecifierLocalTarget = api.MethodGetExportSpecifierLocalTarget const MethodGetExportSymbolOfSymbol = api.MethodGetExportSymbolOfSymbol +const MethodGetExportSymbolOfSymbolForChecker = api.MethodGetExportSymbolOfSymbolForChecker const MethodGetExportsOfModule = api.MethodGetExportsOfModule const MethodGetExportsOfSymbol = api.MethodGetExportsOfSymbol const MethodGetExtendsTypeOfType = api.MethodGetExtendsTypeOfType @@ -147,8 +152,10 @@ const MethodGetFullyQualifiedName = api.MethodGetFullyQualifiedName const MethodGetGlobalDiagnostics = api.MethodGetGlobalDiagnostics const MethodGetImmediateAliasedSymbol = api.MethodGetImmediateAliasedSymbol const MethodGetImportAdderEdits = api.MethodGetImportAdderEdits +const MethodGetIndexInfoOfType = api.MethodGetIndexInfoOfType const MethodGetIndexInfosOfType = api.MethodGetIndexInfosOfType const MethodGetIndexTypeOfType = api.MethodGetIndexTypeOfType +const MethodGetIndexTypeOfTypeByKind = api.MethodGetIndexTypeOfTypeByKind const MethodGetJSDocTags = api.MethodGetJSDocTags const MethodGetJavaScriptEmit = api.MethodGetJavaScriptEmit const MethodGetLocalTypeParametersOfType = api.MethodGetLocalTypeParametersOfType @@ -202,12 +209,14 @@ const MethodGetTargetOfSignature = api.MethodGetTargetOfSignature const MethodGetTargetOfType = api.MethodGetTargetOfType const MethodGetTargetSymbol = api.MethodGetTargetSymbol const MethodGetThisParameterOfSignature = api.MethodGetThisParameterOfSignature +const MethodGetThisTypeOfType = api.MethodGetThisTypeOfType const MethodGetTrueTypeOfConditionalType = api.MethodGetTrueTypeOfConditionalType const MethodGetTypeArguments = api.MethodGetTypeArguments const MethodGetTypeAtLocation = api.MethodGetTypeAtLocation const MethodGetTypeAtLocations = api.MethodGetTypeAtLocations const MethodGetTypeAtPosition = api.MethodGetTypeAtPosition const MethodGetTypeFromTypeNode = api.MethodGetTypeFromTypeNode +const MethodGetTypeOfPropertyOfType = api.MethodGetTypeOfPropertyOfType const MethodGetTypeOfSymbol = api.MethodGetTypeOfSymbol const MethodGetTypeOfSymbolAtLocation = api.MethodGetTypeOfSymbolAtLocation const MethodGetTypeParameterAtPosition = api.MethodGetTypeParameterAtPosition diff --git a/shim/checker/shim.go b/shim/checker/shim.go index 67b3bd78..04f983ee 100644 --- a/shim/checker/shim.go +++ b/shim/checker/shim.go @@ -642,6 +642,9 @@ func IndexInfo_keyType(v *checker.IndexInfo) *checker.Type { func IndexInfo_valueType(v *checker.IndexInfo) *checker.Type { return ((*extra_IndexInfo)(unsafe.Pointer(v))).valueType } +type IndexKind = checker.IndexKind +const IndexKindNumber = checker.IndexKindNumber +const IndexKindString = checker.IndexKindString type IndexType = checker.IndexType type IndexedAccessType = checker.IndexedAccessType type InferenceContext = checker.InferenceContext diff --git a/typescript b/typescript index 879f9867..57d9528d 160000 --- a/typescript +++ b/typescript @@ -1 +1 @@ -Subproject commit 879f9867ac455404e75759dd1739281cf6aa7f85 +Subproject commit 57d9528db25b8dc8375e18468a870ec3f4277d62