Type Alias MakeScopedTransformOptions<T, P>

MakeScopedTransformOptions: {
    key: string;
    test: TransformTest<T>;
    encode?: TransformMakeEncode<T, P>;
    decode?: TransformMakeDecode<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?: TransformMakeEncode<T, P>

    Returns function used to encode

  • Optionaldecode?: TransformMakeDecode<T, P>

    Returns function used to decode