@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
12 lines (11 loc) • 512 B
TypeScript
import Http from '../Http';
import type { IQuery } from '../interfaces/Query';
import type { IToken } from '../interfaces/Token';
import type { DigitalAssetResult, DownloadOptions } from '../interfaces/DigitalAsset';
export default class DigitalAssets extends Http {
download(options: DownloadOptions): Promise<DigitalAssetResult>;
/**
* @deprecated Use the combined options signature instead.
*/
download(token: IToken, assetToken: string, params?: IQuery): Promise<DigitalAssetResult>;
}