(
first: { +[id: string]: O },
second: { +[id: string]: O },
)
| 189 | } |
| 190 | |
| 191 | function findInconsistentObjectKeys<O>( |
| 192 | first: { +[id: string]: O }, |
| 193 | second: { +[id: string]: O }, |
| 194 | ): Set<string> { |
| 195 | const nonMatchingIDs = new Set<string>(); |
| 196 | for (const id in first) { |
| 197 | if (!_isEqual(first[id])(second[id])) { |
| 198 | nonMatchingIDs.add(id); |
| 199 | } |
| 200 | } |
| 201 | for (const id in second) { |
| 202 | if (!first[id]) { |
| 203 | nonMatchingIDs.add(id); |
| 204 | } |
| 205 | } |
| 206 | return nonMatchingIDs; |
| 207 | } |
| 208 | |
| 209 | function getInconsistentThreadIDsFromReport( |
| 210 | request: ThreadInconsistencyReportCreationRequest, |
no test coverage detected