@swishapp/browser
Version:
JS library to integrate Swish into a browser environment.
13 lines (12 loc) • 763 B
TypeScript
import { StorefrontApi, StorefrontApiResponse } from ".";
import type { GetProductCardDataQuery, GetProductCardDataWithVariantQuery } from "./types/storefront.generated";
export type LoadProductCardDataResponse = StorefrontApiResponse<GetProductCardDataQuery | GetProductCardDataWithVariantQuery>;
export type { GetProductCardDataQueryVariables } from "./types/storefront.generated";
export interface LoadProductCardDataArgs {
productId?: string;
variantId?: string;
}
export declare const loadProductCardData: (client: StorefrontApi, { productId, variantId }: LoadProductCardDataArgs) => Promise<{
data: GetProductCardDataQuery | GetProductCardDataWithVariantQuery | undefined;
error: import("@shopify/graphql-client").ResponseErrors | null;
}>;