yaschema
    Preparing search index...

    Interface CustomSchemaOptions<ValueT, SerializedT>

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

    Type Parameters

    Index

    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.

    typeName: string