UNPKG
@rashedmakkouk/dev-utils
Version:
latest (0.15.2)
0.15.2
0.15.1
0.15.0
0.14.9
0.14.8
0.14.7
0.14.6
0.14.5
0.14.1
0.14.0
0.13.2
0.13.1
0.13.0
0.12.0
Utility library.
github.com/rashedmakkouk/dev-utils
rashedmakkouk/dev-utils
@rashedmakkouk/dev-utils
/
lib
/
common
/
to-numeric.d.ts
10 lines
(9 loc)
•
292 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
10
/** Typings */
import
{
ToNumericOptions
}
from
'../types'
;
/** * Converts value to and validates as 'number'. * *
@returns
Formatted number. */
declare
function
toNumeric
(
value
:
number
|
string
|
null
, { decimal, math, precision, }?:
ToNumericOptions
):
number
;
export
default
toNumeric;