Stone.js API
    Preparing search index...

    Function mergeBlueprints

    • Merges multiple blueprints into a single application blueprint.

      This function takes any number of blueprint objects and merges them into one, with later blueprints overwriting properties of earlier ones in case of conflicts. Deep-merges via @stone-js/config's deepMerge: plain objects merge recursively, arrays concatenate, and special objects (Date, Map, Set, class instances) are preserved instead of being flattened. Writes are guarded against prototype pollution. A single, shared merge implementation across the framework.

      Type Parameters

      Parameters

      • ...blueprints: (Record<string, any> | StoneBlueprint<U, V>)[]

        An array of blueprints to be merged.

      Returns StoneBlueprint<U, V>

      The merged application blueprint.

      • If any of the provided blueprints are not valid objects.
      const mergedBlueprint = mergeBlueprints(blueprint1, blueprint2);