@spree/storefront-api-v2-sdk
Version:
Node module to easily integrate your JavaScript or TypeScript application with Spree API V2. You can create an entirely custom Storefront in JS/TS with this package including one page checkout, Single Page Apps, PWAs and so on
15 lines (14 loc) • 451 B
TypeScript
import type { FetchConfig } from './FetchConfig';
export declare type Fetcher = {
fetch: (options: FetchConfig) => Promise<{
data: any;
}>;
};
export declare type CreateFetcher = (options: CreateFetcherConfig) => Fetcher;
export declare type CreateFetcherConfig = {
host: string;
};
export declare type FetcherConfig = {
createFetcher: CreateFetcher;
};
export declare type IClientConfig = CreateFetcherConfig & FetcherConfig;