Skip to content
# Variable: TypeTransformers

const TypeTransformers: object

Defined in: packages/core/src/transformers/TypeTransformationPostProcessor.ts:387

Type-safe transformation helpers

Type Declaration

toDate()

toDate: (value) => null | Date

Transform date string to Date object

Parameters

value

null | string

Returns

null | Date

toBigInt()

toBigInt: (value) => null | bigint

Transform numeric string to BigInt

Parameters

value

null | string | number

Returns

null | bigint

toObject()

toObject: <T&gt;(value) => null | T

Transform JSON string to object

Type Parameters

T

T = unknown

Parameters

value

null | string

Returns

null | T

Released under the MIT License.