UNPKG

money-lib

Version:

TypeScript library to work with money

25 lines (24 loc) 705 B
import type { Money } from "../types"; import type { ChainedMoney } from "./types"; /** * @deprecated Use V2 * @example import { money } from "money-lib/dist/v2" */ declare const moneyChain: { (money?: Money | ChainedMoney): ChainedMoney; config: (c: Partial<{ currencies: Record<string, { code: string; symbol: string; precision: number; }>; defaultCurrency: string; locales: Record<string, { countryCode: string; decimalSeparator: "." | ","; }>; defaultLocale: string; defaultRoundingMethod: "bankers" | "up" | "down" | "round"; }>) => void; }; export default moneyChain;