MCPcopy Create free account
hub / github.com/Lemoncode/fonk / extractErrors

Function extractErrors

src/form-validation-summary-builder.ts:15–21  ·  view source on GitHub ↗
(
  validationResults: InternalValidationResult[]
)

Source from the content-addressed store, hash-verified

13): boolean => validationResults.every(fvr => fvr.succeeded);
14
15const extractErrors = (
16 validationResults: InternalValidationResult[]
17): { [id: string]: InternalValidationResult } =>
18 validationResults.reduce((errors, { key, ...validationResult }) => {
19 errors[key] = { ...validationResult };
20 return errors;
21 }, {});
22
23export const buildRecordValidationResult = (
24 validationResults: InternalValidationResult[]

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…