Fix TypeScript 5.9.3 Uint8Array type compatibility issues#1532
Merged
ankoh merged 4 commits intorenovate/typescript-5.xfrom Feb 3, 2026
Merged
Fix TypeScript 5.9.3 Uint8Array type compatibility issues#1532ankoh merged 4 commits intorenovate/typescript-5.xfrom
ankoh merged 4 commits intorenovate/typescript-5.xfrom
Conversation
1 task
…nterop Co-authored-by: ankoh <3986510+ankoh@users.noreply.github.com>
Owner
|
@copilot please check the actual build errors. I neither want you to add concentrate on those |
Copilot
AI
changed the title
[WIP] Update dependency typescript to ^5.9.3
Add TypeScript 5.9.3 compatibility flags to tsconfig
Feb 3, 2026
Co-authored-by: ankoh <3986510+ankoh@users.noreply.github.com>
Co-authored-by: ankoh <3986510+ankoh@users.noreply.github.com>
Contributor
Author
Fixed the 4 TypeScript 5.9.3 errors by using type assertions to tell TypeScript that Uint8Array is compatible with the expected types:
Reverted the tsconfig changes (skipLibCheck, esModuleInterop, allowSyntheticDefaultImports). Commit: e7d87a0 |
Copilot
AI
changed the title
Add TypeScript 5.9.3 compatibility flags to tsconfig
Fix TypeScript 5.9.3 Uint8Array type compatibility issues
Feb 3, 2026
ankoh
approved these changes
Feb 3, 2026
ankoh
pushed a commit
that referenced
this pull request
Feb 3, 2026
* Update dependency typescript to ^5.9.3 * Fix TypeScript 5.9.3 Uint8Array type compatibility issues (#1532) --------- Co-authored-by: dashql-renovate[bot] <203421728+dashql-renovate[bot]@users.noreply.github.com> Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
TypeScript 5.9.3 has stricter type definitions for Web APIs that accept binary data. While
Uint8Arrayis accepted at runtime by APIs likeRequest,Blob, and various buffer operations, the TypeScript type definitions don't recognize this compatibility.Changes
Fixed 4 compilation errors using type assertions and type adjustments:
args.bodytoBodyInitfor the Request constructorbodyBuffertype fromArrayBuffertoArrayBuffer | Uint8Arrayto accept TextEncoder outputuint8ArraytoBlobPartfor the Blob constructorThese changes use type assertions to inform TypeScript that
Uint8Arrayis compatible with the expected types, preserving the exact data size without using the.bufferproperty which could include extra uninitialized data.Files Modified
packages/dashql-app/src/platform/native_grpc_client.tspackages/dashql-app/src/platform/native_http_client.tspackages/dashql-app/src/platform/web_file_downloader.ts✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.