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

Function checkBrands

packages/effect/src/internal/schema/toCodeDocument.ts:300–311  ·  view source on GitHub ↗
(
    check: SchemaRepresentation.Check
  )

Source from the content-addressed store, hash-verified

298 }
299
300 function checkBrands(
301 check: SchemaRepresentation.Check
302 ): ReadonlyArray<string> {
303 const own = InternalAnnotations.collectBrands(check.annotations)
304 if (
305 check._tag === "FilterGroup" &&
306 check.annotations?.toCode === undefined
307 ) {
308 return [...own, ...check.checks.flatMap(checkBrands)]
309 }
310 return own
311 }
312
313 function runtimeBrands(brands: ReadonlyArray<string>): string {
314 return brands.length === 0

Callers 1

applyNodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected