format-money-js
Advanced tools
Comparing version 1.5.0 to 1.5.1
/*! | ||
* format-money-js v1.5.0 | ||
* format-money-js v1.5.1 | ||
* (c) 2020-2022 Yurii Derevych | ||
@@ -29,4 +29,4 @@ * Sponsored by https://currencyrate.today/ | ||
constructor(options?: FormatMoneyOptions); | ||
from: (number: number, options: FormatMoneyOptions, parse?: boolean) => string | number | FormatMoneyParse | undefined; | ||
from: (number: number, options: FormatMoneyOptions | {}, parse?: boolean) => string | number | FormatMoneyParse | undefined; | ||
un: (value: (string | number), options: FormatMoneyOptions) => number | undefined; | ||
} |
"use strict"; | ||
/*! | ||
* format-money-js v1.5.0 | ||
* format-money-js v1.5.1 | ||
* (c) 2020-2022 Yurii Derevych | ||
@@ -5,0 +5,0 @@ * Sponsored by https://currencyrate.today/ |
{ | ||
"name": "format-money-js", | ||
"description": "Zero dependency tiny JavaScript library (1kB bytes) by CurrencyRate.today, providing simple way and advanced number, money and currency formatting and removes all formatting/cruft and returns the raw float value.", | ||
"version": "1.5.0", | ||
"version": "1.5.1", | ||
"license": "BSD-2-Clause", | ||
@@ -6,0 +6,0 @@ "main": "./dist/format-money.js", |
/*! | ||
* format-money-js v1.5.0 | ||
* format-money-js v1.5.1 | ||
* (c) 2020-2022 Yurii Derevych | ||
@@ -50,3 +50,3 @@ * Sponsored by https://currencyrate.today/ | ||
from = (number: number, | ||
options: FormatMoneyOptions, | ||
options: FormatMoneyOptions | {}, | ||
parse: boolean = false): string | number | FormatMoneyParse | undefined => { | ||
@@ -53,0 +53,0 @@ const opt = { |
Sorry, the diff of this file is not supported yet
23411