Skip to main content

Type Alias: Converter()<T, S>

Converter<T, S>: (value: T) => S

Converters are functions that transform values from one type to another when reading from or writing to the database.

Type Parameters

Type ParameterDefault typeDescription
TanyThe input type of the converter
SanyThe output type of the converter

Parameters

ParameterType
valueT

Returns

S

Defined in

packages/verse-core/src/model/builder.ts:588