@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
18 lines (12 loc) • 388 B
text/typescript
import type { FetchConfig } from './FetchConfig'
export type Fetcher = {
fetch: (options: FetchConfig) => Promise<{ data: any }>
}
export type CreateFetcher = (options: CreateFetcherConfig) => Fetcher
export type CreateFetcherConfig = {
host: string
}
export type FetcherConfig = {
createFetcher: CreateFetcher
}
export type IClientConfig = CreateFetcherConfig & FetcherConfig