MCPcopy Index your code
hub / github.com/Effect-TS/effect / handle

Function handle

packages/effect/src/JSONSchema.ts:556–561  ·  view source on GitHub ↗
(name: string, filter: (i: any) => boolean)

Source from the content-addressed store, hash-verified

554 out.allOf ??= []
555
556 const handle = (name: string, filter: (i: any) => boolean) => {
557 if (name in jsonSchema && name in from) {
558 out.allOf.unshift({ [name]: from[name] })
559 out.allOf = out.allOf.filter(filter)
560 }
561 }
562
563 handle("minLength", (i) => i.minLength > jsonSchema.minLength)
564 handle("maxLength", (i) => i.maxLength < jsonSchema.maxLength)

Callers 1

mergeRefinementsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…