UNPKG

@swishapp/browser

Version:

JS library to integrate Swish into a browser environment.

14 lines (13 loc) 830 B
import { StorefrontApiClient, StorefrontApiResponse } from "./storefront-api-client"; import type { GetProductOptionsQuery, GetProductOptionsWithVariantQuery } from "./types/storefront.generated"; export type LoadProductOptionsResponse = StorefrontApiResponse<GetProductOptionsQuery | GetProductOptionsWithVariantQuery>; export type { GetProductOptionsQueryVariables } from "./types/storefront.generated"; export interface LoadProductOptionsArgs { productId?: string; variantId?: string; productHandle?: string; } export declare const loadProductOptions: (client: StorefrontApiClient, { productId, productHandle, variantId }: LoadProductOptionsArgs) => Promise<{ data: GetProductOptionsQuery | GetProductOptionsWithVariantQuery | undefined; errors: import("@shopify/graphql-client").ResponseErrors | null; }>;