MCPcopy Create free account
hub / github.com/arktypeio/arktype / readEach

Function readEach

ark/sets/fromJsonSchema.ts:1485–1486  ·  view source on GitHub ↗
(schemas: array, pointer: string, ctx: ReadContext)

Source from the content-addressed store, hash-verified

1483}
1484
1485const readEach = (schemas: array, pointer: string, ctx: ReadContext) =>
1486 schemas.map((schema, i) => read(schema, `${pointer}/${i}`, ctx))
1487
1488const unionOf = (roots: readonly BaseRoot[]): BaseRoot =>
1489 jsonSchemaNode("union", { branches: roots.flatMap(root => root.branches) })

Callers 2

fromJsonSchema.tsFile · 0.85
readArrayFunction · 0.85

Calls 2

readFunction · 0.70
mapMethod · 0.65

Tested by

no test coverage detected