UNPKG

@sane-shopify/sync-utils

Version:

Syncing utility for Node & the browser

10 lines (9 loc) 486 B
import { Collection, Product, SanityShopifyDocumentPartial } from '@sane-shopify/types'; export declare const sleep: (ms: number) => Promise<void>; export declare const prepareDocument: <T extends Product | Collection>(item: T) => SanityShopifyDocumentPartial; interface IsMatchConfig { keys: string[]; } export declare const isMatch: (a: any, b: any, { keys }: IsMatchConfig) => boolean; export declare const uniqueObjects: <T extends object>(arr: T[]) => T[]; export {};