Interface CustomSchemaOptions<ValueT, SerializedT>

interface CustomSchemaOptions<ValueT, SerializedT extends JsonValue> {
    customClone?: CustomCloner<ValueT>;
    customValidation?: CustomValidation<ValueT>;
    isContainerType?: boolean;
    serDes: SerDes<ValueT, SerializedT>;
    typeName: string;
}

Type Parameters

Properties

customClone?: CustomCloner<ValueT>

Deeply clones a value. By default, the value is serialized and then deserialized (which could be much more expensive than a custom operation).

customValidation?: CustomValidation<ValueT>

Performs validation logic. By default, only isValueType is checked, using the serDes field.

isContainerType?: boolean
typeName: string