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 (15 loc) 605 B
import Http from '../Http'; import type { MenuResult, MenusList, MenusResult, ListOptions, ShowOptions } from '../interfaces/Menu'; import type { IQuery } from '../interfaces/Query'; export default class Menus extends Http { list(options?: ListOptions): Promise<MenusResult>; /** * @deprecated Use the combined options signature instead. */ list(params?: MenusList): Promise<MenusResult>; show(options: ShowOptions): Promise<MenuResult>; /** * @deprecated Use the combined options signature instead. */ show(id: string, params?: IQuery): Promise<MenuResult>; }