Skip to content
1 min read · 51 words

Type Alias: GenerationImageInput ​

ts
type GenerationImageInput =
  | Uint8Array
  | GenerationBytesInput
  | GenerationMediaLike;

Defined in: src/batteries/generation/_shared/index.ts:56

Any of the three forms a generation adapter accepts as image input (for edit calls, and for a future mask parameter): a bare Uint8Array (MIME type unknown), a GenerationBytesInput record (bytes + declared MIME), or a GenerationMediaLike (a real Media or any duck-typed equivalent).