@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 (15 loc) • 597 B
TypeScript
import Http from '../Http';
import type { IPageResult, IPagesResult, ListOptions, ShowOptions } from '../interfaces/Page';
import type { IQuery } from '../interfaces/Query';
export default class Pages extends Http {
list(options?: ListOptions): Promise<IPagesResult>;
/**
* @deprecated Use the combined options signature instead.
*/
list(params?: IQuery): Promise<IPagesResult>;
show(options: ShowOptions): Promise<IPageResult>;
/**
* @deprecated Use the combined options signature instead.
*/
show(id: string, params?: IQuery): Promise<IPageResult>;
}