(overload, uniqueOverloads)
| 131 | // of the arguments is less important for parameter validation, we'll |
| 132 | // perform overload deduplication here. |
| 133 | const removeDuplicateOverloads = (overload, uniqueOverloads) => { |
| 134 | const overloadString = JSON.stringify(overload); |
| 135 | if (uniqueOverloads.has(overloadString)) { |
| 136 | return false; |
| 137 | } |
| 138 | uniqueOverloads.add(overloadString); |
| 139 | return true; |
| 140 | }; |
| 141 | |
| 142 | for (const [key, value] of Object.entries(funcObj)) { |
| 143 | if (value && typeof value === 'object' && value.overloads) { |