usimple-saleor-sdk
Version:
This package contains all queries and mutations that are used in our sample storefront. It can be used for semi-custom or fully-custom (with ability to extend existing queries) storefront solutions.
10 lines (9 loc) • 653 B
TypeScript
import ApolloClient from "apollo-client";
import BaseList, { BaseListVariables } from "../../../helpers/BaseList";
export declare function makeList<TObject, TQuery, TVariables extends BaseListVariables>(createList: (client: ApolloClient<any>) => BaseList<TQuery, TObject, TVariables>): (variables: TVariables) => {
current: Promise<import("apollo-client").ApolloQueryResult<TQuery>> | PromiseLike<import("apollo-client").ApolloQueryResult<TQuery>> | null | undefined;
data: TObject[] | undefined;
loading: boolean;
next: () => Promise<void>;
pageInfo: import("../../../fragments/gqlTypes/PageInfo").PageInfo | undefined;
};