shopperman
Version:
shopping cart ui for shopify stores
20 lines (19 loc) • 586 B
TypeScript
import { ProductOptions, ElementAttributes } from "./stores-interfaces";
/**
* Represent a single ecommerce product
*/
export declare class Product {
readonly id: string;
readonly value: number;
readonly title: string;
readonly description: string;
private readonly currencyControl;
precision: number;
attributes: {
[key: string]: string;
};
constructor({ precision, attributes, ...options }: ProductOptions);
readonly price: string;
setPrecision(precision: number): void;
setAttributes(attributes?: ElementAttributes): void;
}