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.
Type Parameters
Section titled “Type Parameters”T
Parameters
Section titled “Parameters”schema
Section titled “schema”Type<T>
unknown[]
Returns
Section titled “Returns”T[]
Throws
Section titled “Throws”ValidationError on the first item that fails validation.
The summary is prefixed with the failing index ([3]: ...) so callers
can locate it.