Skip to content

Function: asNumber()

asNumber(options?): TTransformer<number, TNumber>

Create a number transformer

Parameters

ParameterTypeDescription
options?NumberOptionsValidation options (see NumberOptions)

Returns

TTransformer<number, TNumber>

Example

ts
Column('score', asNumber());

Defined in

src/transformer/as-number.ts:14

Released under the MIT License.