usePrice
Types
ts
export type UsePriceReturn = {
/**
* Format price i.e. (2) -> 2.00 $
*/
getFormattedPrice(value: number | string | undefined): string;
/**
* Update configuration
*/
update(params: {
localeCode: string | undefined;
currencyCode: string;
}): void;
/**
* Currency code
*/
currencyCode: ComputedRef<string>;
};