Function: asNumber()
asNumber(
options
?):TTransformer
<number
,TNumber
>
Create a number transformer
Parameters
Parameter | Type | Description |
---|---|---|
options ? | NumberOptions | Validation options (see NumberOptions) |
Returns
TTransformer
<number
, TNumber
>
Example
ts
Column('score', asNumber());