Skip to content

parseArray

parseArray<T>(schema, data): T[]

Defined in: packages/core/src/schema/validate-schemas.ts:33

Parse an array of items against a schema. Used for getNewPatterns output.

T

Type<T>

unknown[]

T[]

ValidationError on the first item that fails validation. The summary is prefixed with the failing index ([3]: ...) so callers can locate it.