Skip to content
0

katanakit-js / SalePrice

Interface: SalePrice ​

Defined in: src/types/index.ts:315

Result of useSalePrice: the regular price, the discounted price and the rounded percentage taken off.

Properties ​

PropertyTypeDescriptionDefined in
percentOffnumberPercentage taken off, rounded to two decimals (e.g. 40, 12.5).src/types/index.ts:321
pricenumberRegular price, echoed back for display.src/types/index.ts:317
salePricenumberPrice after the discount, unrounded — let the currency formatter own the digits.src/types/index.ts:319

Released under the MIT License.