@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
37 lines (33 loc) • 689 B
text/typescript
export type HttpMethod =
| 'get'
| 'GET'
| 'delete'
| 'DELETE'
| 'head'
| 'HEAD'
| 'options'
| 'OPTIONS'
| 'post'
| 'POST'
| 'put'
| 'PUT'
| 'patch'
| 'PATCH'
| 'purge'
| 'PURGE'
| 'link'
| 'LINK'
| 'unlink'
| 'UNLINK'
/**
* @deprecated Automatic parsing will be removed in the future to ensure the same behavior of different Fetchers.
*/
export type AutomaticResponseParsing = 'automatic'
export type ResponseParsing = AutomaticResponseParsing | 'text' | 'json' | 'stream'
export type FetchConfig = {
url: string
params: { [key: string]: any }
method: HttpMethod
headers: { [key: string]: string }
responseParsing: ResponseParsing
}