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.
17 lines (16 loc) • 517 B
TypeScript
interface SaleorLinksConfig {
/**
* Url of the Saleor GraphQL API.
*/
apiUrl: string;
/**
* Callback called when token expiration error occured in Saleor API response.
*/
tokenExpirationCallback: () => void;
}
/**
* Creates list of links for Apollo client.
* @param linksConfig Configuration for created links.
*/
export declare const createSaleorLinks: ({ apiUrl, tokenExpirationCallback, }: SaleorLinksConfig) => import("apollo-link").ApolloLink[];
export {};