Skip to content

fix: make uint8Array optional on ImageProps - #477

Open
HankGrimm wants to merge 1 commit into
vercel:mainfrom
HankGrimm:fix/image-optional-uint8array
Open

fix: make uint8Array optional on ImageProps#477
HankGrimm wants to merge 1 commit into
vercel:mainfrom
HankGrimm:fix/image-optional-uint8array

Conversation

@HankGrimm

Copy link
Copy Markdown

What

Makes uint8Array optional on ImageProps while still accepting it, instead of requiring it via the inherited Experimental_GeneratedImage type.

Why

Image only destructures and uses base64 and mediaTypeuint8Array is received and discarded, never touched. Callers that only have base64/mediaType (e.g. an image-generation tool result, a stored image record reconstructed from JSON) are forced to fabricate a uint8Array they don't need.

How verified

Backwards compatible type change — existing callers passing the full Experimental_GeneratedImage object still typecheck. No runtime logic changed.

Fixes #458

@vercel

vercel Bot commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

@HankGrimm is attempting to deploy a commit to the Vercel Team on Vercel.

A member of the Team first needs to authorize it.

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.

image: Experimental_GeneratedImage requires uint8Array, but Image renders from base64 alone

1 participant