phx-react
Version:
PHX REACT
28 lines (27 loc) • 748 B
TypeScript
interface IBundleProduct {
store_bundle_product_attribute_values: {
store_product_attribute_value: {
price: number;
};
}[];
}
export declare const caculateBundlePrice: (bundleProducts: Array<IBundleProduct>, price_type: {
type: string;
value: number;
}) => string;
export declare function formatCurrency(amount: number): string;
export declare const caculateProductPrice: (data: {
store_product_attributes: {
store_product_attribute_values_aggregate: {
aggregate: {
min: {
price: number;
};
max: {
price: number;
};
};
};
}[];
}) => string;
export {};