Documentation
    Preparing search index...

    Function groupDeclarations

    • Groups declarations by exact shape hash and structural similarity.

      1. Exact same hash → similarity 1
      2. For threshold < 1 → structuralSim compares shape JSONs

      Parameters

      • decls: Declaration<Record<string, unknown>>[]
      • threshold: number = 1

      Returns DupGroup[]