Skip to content

Type the fsWrite body as Uint8Array<ArrayBuffer> - #223

Merged
kylemclaren merged 1 commit into
mainfrom
fix-ts-uint8array-bodyinit
Aug 7, 2026
Merged

Type the fsWrite body as Uint8Array<ArrayBuffer>#223
kylemclaren merged 1 commit into
mainfrom
fix-ts-uint8array-bodyinit

Conversation

@kylemclaren

Copy link
Copy Markdown
Collaborator

No description provided.

TypeScript 5.7 made Uint8Array generic, and a plain Uint8Array widens to
Uint8Array<ArrayBufferLike>, which is not assignable to BodyInit. Copying
the TypeScript worker as written fails to compile against @types/node 22:

  error TS2322: Type 'Uint8Array<ArrayBufferLike>' is not assignable to
  type 'BodyInit | null | undefined'.

The call site already passes a TextEncoder result, which is a
Uint8Array<ArrayBuffer>, so narrowing the parameter is enough.
@kylemclaren
kylemclaren merged commit 6818d86 into main Aug 7, 2026
3 checks passed
@kylemclaren
kylemclaren deleted the fix-ts-uint8array-bodyinit branch August 7, 2026 16:04
@github-actions

github-actions Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Preview Deployment

Name URL
Preview https://pr-223-superfly-sprites-docs.fly.dev

Commit: 7d9ee45

@github-actions

github-actions Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Lighthouse Results

URL Performance Accessibility Best Practices SEO
/ 🟠 73 🟢 97 🟢 96 🟢 100
/integrations/claude-managed-agents/ 🟢 97 🟢 97 🟢 100 🟢 100

@github-actions

github-actions Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

E2E Test Results

✅ Tests success

Ran against: https://pr-223-superfly-sprites-docs.fly.dev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant