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

Function hasCheck

packages/effect/src/SchemaAST.ts:1450–1455  ·  view source on GitHub ↗
(checks: ReadonlyArray<Check<unknown>>, id: string)

Source from the content-addressed store, hash-verified

1448}
1449
1450function hasCheck(checks: ReadonlyArray<Check<unknown>>, id: string): boolean {
1451 return checks.some((check) =>
1452 check.annotations?.representation?.id === id ||
1453 (check._tag === "FilterGroup" && hasCheck(check.checks, id))
1454 )
1455}
1456
1457function numberToJson(checks: Checks | undefined): Link {
1458 const encodedFinite = !checks

Callers 1

toCodecJsonMethod · 0.85

Calls 1

someMethod · 0.80

Tested by

no test coverage detected