interface ImageResponse {
    id: string;
    request: (() => Promise<ImageResult>) | (() => ImageResult);
}

Properties

Properties

id: string

The id of the response, used to deduplicate requests.

request: (() => Promise<ImageResult>) | (() => ImageResult)

The request that will generate the image.

Type declaration

Type declaration