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 parameterValueDescription
TanyThe input type of the converter
SanyThe output type of the converter

Parameters

ParameterType
valueT

Returns

S

Source

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