Type Alias MakeTransformOptions<T, P>

MakeTransformOptions: {
    key: string;
    test: TransformTest<T>;
    encode?: TransformEncode<T, P>;
    decode?: TransformDecode<T, P>;
}

Type Parameters

  • T
  • P

Type declaration

  • key: string

    The key used internally when encoding and decoding

  • test: TransformTest<T>

    Capture test for this transform

  • Optionalencode?: TransformEncode<T, P>

    Encodes value to a primitive representation

  • Optionaldecode?: TransformDecode<T, P>

    Decodes back to original value