( classification: ChangeClassification, match: Partial<Match>, delta?: unknown, suffix = "" )
| 162 | ): string => `change-${fingerprint([classification, base?.id ?? null, head?.id ?? null, suffix]).slice(0, 16)}` |
| 163 | |
| 164 | const makeChange = ( |
| 165 | classification: ChangeClassification, |
| 166 | match: Partial<Match>, |
| 167 | delta?: unknown, |
| 168 | suffix = "" |
| 169 | ): ApiChange => ({ |
| 170 | id: changeId(classification, match.base, match.head, suffix), |
| 171 | classification, |
| 172 | confidence: match.confidence ?? 1, |
| 173 | baseApiId: match.base?.id, |
| 174 | headApiId: match.head?.id, |
| 175 | before: match.base?.displaySignature, |
| 176 | after: match.head?.displaySignature, |
| 177 | delta, |
| 178 | baseSource: match.base?.source, |
| 179 | headSource: match.head?.source, |
| 180 | reviewNotes: match.note, |
| 181 | authoritative: match.authoritative ?? true |
| 182 | }) |
| 183 | |
| 184 | const declarationHash = (value: unknown): string => fingerprint(value) |
| 185 |
no test coverage detected