UNPKG

shopify-storefront

Version:
46 lines 1.33 kB
import { IProduct } from './interfaces/IProduct'; export declare function normalizeProduct(product: IProduct): { variants: any; images: any; availableForSale: boolean; createdAt: string; description: string; descriptionHtml: string; handle: string; id: string; isGiftCard: boolean; onlineStoreUrl: string; options: import("./interfaces").IProductOption[]; productType: string; publishedAt: string; requiresSellingPlan: boolean; seo: import("./interfaces").IProductSEO; tags: string[]; title: string; totalInventory: number; updatedAt: string; vendor: string; }; export declare function normalizeProductList(products: IProduct[]): { variants: any; images: any; availableForSale: boolean; createdAt: string; description: string; descriptionHtml: string; handle: string; id: string; isGiftCard: boolean; onlineStoreUrl: string; options: import("./interfaces").IProductOption[]; productType: string; publishedAt: string; requiresSellingPlan: boolean; seo: import("./interfaces").IProductSEO; tags: string[]; title: string; totalInventory: number; updatedAt: string; vendor: string; }[]; //# sourceMappingURL=products-utils.d.ts.map