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 Parameter | Default type | Description |
|---|---|---|
T | any | The input type of the converter |
S | any | The output type of the converter |
Parameters
| Parameter | Type |
|---|---|
value | T |
Returns
S