UNPKG

@swishapp/browser

Version:

JS library to integrate Swish into a browser environment.

13 lines (12 loc) 785 B
import { StorefrontApi, StorefrontApiResponse } from "."; import type { GetProductDetailDataQuery, GetProductDetailDataWithVariantQuery } from "./types/storefront.generated"; export type LoadProductDetailDataResponse = StorefrontApiResponse<GetProductDetailDataQuery | GetProductDetailDataWithVariantQuery>; export type { GetProductDetailDataQueryVariables } from "./types/storefront.generated"; export interface LoadProductDetailDataArgs { productId?: string; variantId?: string; } export declare const loadProductDetailData: (client: StorefrontApi, { productId, variantId }: LoadProductDetailDataArgs) => Promise<{ data: GetProductDetailDataQuery | GetProductDetailDataWithVariantQuery | undefined; error: import("@shopify/graphql-client").ResponseErrors | null; }>;