@sane-shopify/sync-utils
Version:
Syncing utility for Node & the browser
5 lines (4 loc) • 521 B
TypeScript
import { ProgressHandler, ShopifyClient, Collection, ShopifyMetafieldsConfig } from '@sane-shopify/types';
import { ShopifyCache } from './shopifyUtils';
export declare const createCollectionsQuery: (shopifyConfig: ShopifyMetafieldsConfig) => import("graphql").DocumentNode;
export declare const createFetchAllShopifyCollections: (shopifyClient: ShopifyClient, fetchMetafieldsConfig: () => Promise<ShopifyMetafieldsConfig>, cache: ShopifyCache) => (onProgress?: ProgressHandler<Collection>) => Promise<Collection[]>;