UNPKG

@swishapp/browser

Version:

JS library to integrate Swish into a browser environment.

21 lines (20 loc) 683 B
import { StorefrontApi, StorefrontApiResponse } from "."; export type LoadProductImagesResponse = StorefrontApiResponse<{ id: string; altText: string; url: string; }[]>; export type { GetProductImagesByIdQueryVariables } from "./types/storefront.generated"; export interface LoadProductImagesArgs { items: { productId: number; variantId?: number | null; }[]; } export declare const loadProductImages: (client: StorefrontApi, { items }: LoadProductImagesArgs) => Promise<{ data: (Pick<import("./types/storefront.types").Image, "id" | "altText" | "url" | "thumbhash"> | undefined)[]; error: null; } | { data: null; error: Error; }>;