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

17 lines (16 loc) 705 B
import Http from '../Http'; import type { ICountriesResult, ICountryResult, DefaultOptions, ListOptions, ShowOptions } from '../interfaces/Country'; import type { IQuery } from '../interfaces/Query'; export default class Countries extends Http { list(options?: ListOptions): Promise<ICountriesResult>; show(options: ShowOptions): Promise<ICountryResult>; /** * @deprecated Use the combined options signature instead. */ show(iso: string, params: IQuery): Promise<ICountryResult>; default(options?: DefaultOptions): Promise<ICountryResult>; /** * @deprecated Use the combined options signature instead. */ default(params: IQuery): Promise<ICountryResult>; }