MCPcopy Create free account
hub / github.com/Effect-TS/effect / onSchema

Function onSchema

packages/effect/src/unstable/httpapi/HttpApiClient.ts:1002–1004  ·  view source on GitHub ↗
(schema: Schema.Constraint)

Source from the content-addressed store, hash-verified

1000 return Schema.Union(schemas.map(onSchema))
1001
1002 function onSchema(schema: Schema.Constraint) {
1003 return fromArrayBuffer(schema).pipe(Schema.decodeTo(schema))
1004 }
1005}
1006
1007function fromArrayBuffer(schema: Schema.Constraint): Schema.Top {

Callers

nothing calls this directly

Calls 2

fromArrayBufferFunction · 0.85
pipeMethod · 0.65

Tested by

no test coverage detected