BUPKIS
    Preparing search index...

    Interface ValueToSchemaOptions

    Options for valueToSchema

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

    Properties

    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
    
    strict?: boolean

    If true, will disallow unknown properties in parsed objects

    false