(map: Record<string, T>, key: string)
| 311 | } |
| 312 | |
| 313 | function findByKey<T>(map: Record<string, T>, key: string): T | undefined { |
| 314 | const foundKey = Object.keys(map).find((mapKey) => uncapitalize(mapKey) === key) |
| 315 | if (foundKey) { |
| 316 | return map[foundKey] |
| 317 | } |
| 318 | return undefined |
| 319 | } |
| 320 | |
| 321 | function renderOmitValidationErrors( |
| 322 | omitConfig: Record<PropertyKey, unknown>, |
no test coverage detected