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.
13 lines (12 loc) • 1.02 kB
TypeScript
export declare const useProductList: (variables: import("../../queries/gqlTypes/ProductList").ProductListVariables) => {
current: Promise<import("apollo-client").ApolloQueryResult<import("../../queries/gqlTypes/ProductList").ProductList>> | PromiseLike<import("apollo-client").ApolloQueryResult<import("../../queries/gqlTypes/ProductList").ProductList>> | null | undefined;
data: import("../../queries/gqlTypes/ProductList").ProductList_products_edges_node[] | undefined;
loading: boolean;
next: () => Promise<void>;
pageInfo: import("../../fragments/gqlTypes/PageInfo").PageInfo | undefined;
};
export declare const useProductDetails: (variables: import("../../queries/gqlTypes/ProductDetails").ProductDetailsVariables) => {
current: Promise<import("apollo-client").ApolloQueryResult<import("../../queries/gqlTypes/ProductDetails").ProductDetails>> | null | undefined;
data: import("../../fragments/gqlTypes/ProductDetails").ProductDetails | undefined;
loading: boolean;
};