BUPKIS
    Preparing search index...

    Interface ValueToSchemaOptions

    Options for valueToSchema

    interface ValueToSchemaOptions {
        literalEmptyArrays?: boolean;
        literalEmptyObjects?: boolean;
        literalPrimitives?: boolean;
        literalRegExp?: boolean;
        literalTuples?: boolean;
        maxDepth?: number;
        noMixedArrays?: boolean;
        permissivePropertyCheck?: boolean;
        strict?: boolean;
    }
    Index

    Properties

    literalEmptyArrays?: boolean

    If true, treat empty arrays [] as literal empty arrays that only match arrays with zero elements. When false, empty arrays match any array.

    false
    
    literalEmptyObjects?: boolean

    If true, treat empty objects {} as literal empty objects that only match objects with zero own properties

    false
    
    literalPrimitives?: boolean

    If true, use literal schema for primitive values instead of type schema

    false
    
    literalRegExp?: boolean

    If true, treat RegExp literals as RegExp literals; otherwise treat as strings and attempt match

    false
    
    literalTuples?: boolean

    If true, treat arrays as tuples wherever possible.

    Implies false for noMixedArrays.

    false
    
    maxDepth?: number

    Maximum nesting depth to prevent stack overflow

    10
    
    noMixedArrays?: boolean

    Whether to allow mixed types in arrays

    If literalTuples is true, this option is ignored and treated as false.

    false
    
    permissivePropertyCheck?: boolean

    If true, use property checking that works on any value type (functions, arrays, etc.), not just plain objects. Properties are checked using the in operator which works with non-enumerable and inherited properties.

    Only applies when strict is false. When strict is true, standard Zod object validation is used which requires exact type matching.

    false
    
    strict?: boolean

    If true, will disallow unknown properties in parsed objects

    false