@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 (17 loc) • 721 B
TypeScript
export declare 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 declare type AutomaticResponseParsing = 'automatic';
export declare type ResponseParsing = AutomaticResponseParsing | 'text' | 'json' | 'stream';
export declare type FetchConfig = {
url: string;
params: {
[key: string]: any;
};
method: HttpMethod;
headers: {
[key: string]: string;
};
responseParsing: ResponseParsing;
};