UNPKG

@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

16 lines (12 loc) 406 B
import { AxiosResponse } from 'axios' import SpreeError from './SpreeError' class BasicSpreeError extends SpreeError { public summary: string constructor(serverResponse: AxiosResponse, errorsSummary: string) { super(serverResponse) Object.setPrototypeOf(this, BasicSpreeError.prototype) this.name = 'BasicSpreeError' this.summary = errorsSummary } } export default BasicSpreeError