TS-Scribe - v1.2.0
    Preparing search index...

    Type Alias DeepMergeOptions

    type DeepMergeOptions = {
        arrayMerge?: "replace" | "concat";
        maxDepth?: number;
    }
    Index

    Properties

    arrayMerge?: "replace" | "concat"

    Strategy for merging arrays.

    • 'replace' (default): the second array fully replaces the first.
    • 'concat': arrays are concatenated (second appended to first).
    maxDepth?: number

    Maximum recursion depth before bailing out (default: 50). Beyond this depth, the second value overwrites the first without further recursion, preventing stack overflows on deeply nested or malicious input.