Documentation
Preparing search index...
@dry-lint/dry-lint
groupDeclarations
Function groupDeclarations
groupDeclarations
(
decls
:
Declaration
<
Record
<
string
,
unknown
>
>
[]
,
threshold
?:
number
,
)
:
DupGroup
[]
Groups declarations by exact shape hash and structural similarity.
Exact same hash → similarity 1
For threshold < 1 → structuralSim compares shape JSONs
Parameters
decls
:
Declaration
<
Record
<
string
,
unknown
>
>
[]
threshold
:
number
= 1
Returns
DupGroup
[]
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Documentation
Loading...
Groups declarations by exact shape hash and structural similarity.