@metreeca/blue - v0.9.1
    Preparing search index...

    Function collect

    • Collects multiple validation traces into a single canonical trace.

      Returns traces in canonical form: all messages first, followed by a single merged property dictionary (if any). Input traces may contain messages and dictionaries in any order; the output normalises this structure.

      • Empty input yields an empty trace
      • Messages deduplicated, empty strings removed, encounter order preserved
      • Dictionaries merged, empty ones removed, key order preserved, overlapping keys recursively merged

      Parameters

      • traces: readonly Trace[]

        The traces to collect

      Returns Trace

      An immutable canonical trace with messages followed by a merged key dictionary

      If traces or any of its elements is not a valid Trace