UNPKG

shopify-storefront

Version:
21 lines 733 B
import { GraphQLClient } from '../../graphql'; import { IProduct } from './interfaces/IProduct'; interface IGetProductsProps { first?: number; last?: number; query?: string; reverse?: boolean; sortKey?: 'TITLE' | 'PRODUCT_TYPE' | 'VENDOR' | 'UPDATED_AT' | 'CREATED_AT' | 'BEST_SELLING' | 'PRICE' | 'ID' | 'RELEVANCE'; } interface IGetProductProps { handle?: string; id?: string; } declare class ProductsClient { private readonly graphql; constructor(graphql: GraphQLClient); getProduct(props: IGetProductProps): Promise<IProduct>; getProducts(props: IGetProductsProps): Promise<IProduct[]>; } export default ProductsClient; //# sourceMappingURL=products-client.d.ts.map