woocommerce/packages/woocommerce-blocks/assets/js/data/constants.ts
2021-12-10 12:03:04 +00:00

17 lines
567 B
TypeScript

/**
* REST API namespace for rest requests against blocks namespace.
*
* @member {string}
*/
export const API_BLOCK_NAMESPACE = 'wc/blocks';
export const EMPTY_CART_COUPONS: [ ] = [];
export const EMPTY_CART_ITEMS: [ ] = [];
export const EMPTY_CART_FEES: [ ] = [];
export const EMPTY_CART_ITEM_ERRORS: [ ] = [];
export const EMPTY_CART_ERRORS: [ ] = [];
export const EMPTY_SHIPPING_RATES: [ ] = [];
export const EMPTY_PAYMENT_REQUIREMENTS: [ ] = [];
export const EMPTY_EXTENSIONS: Record< string, unknown > = {};
export const EMPTY_TAX_LINES: [ ] = [];