( validationResults: InternalValidationResult[] )
| 13 | ): boolean => validationResults.every(fvr => fvr.succeeded); |
| 14 | |
| 15 | const extractErrors = ( |
| 16 | validationResults: InternalValidationResult[] |
| 17 | ): { [id: string]: InternalValidationResult } => |
| 18 | validationResults.reduce((errors, { key, ...validationResult }) => { |
| 19 | errors[key] = { ...validationResult }; |
| 20 | return errors; |
| 21 | }, {}); |
| 22 | |
| 23 | export const buildRecordValidationResult = ( |
| 24 | validationResults: InternalValidationResult[] |
no outgoing calls
no test coverage detected
searching dependent graphs…