Interface FieldTransformer<T>

interface FieldTransformer<T> {
    read?: (value: any) => null | T;
    write?: (value: null | T) => any;
}

Type Parameters

  • T

Properties

Properties

read?: (value: any) => null | T

Transformation to apply when a value is read from an adapter.

write?: (value: null | T) => any

Transformation to apply when a value is written to an adapter.