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

Method constructor

packages/effect/src/SchemaAST.ts:3181–3188  ·  view source on GitHub ↗
(
    checks: readonly [Check<E>, ...Array<Check<E>>],
    annotations: Schema.Annotations.Filter | undefined = undefined
  )

Source from the content-addressed store, hash-verified

3179 readonly annotations: Schema.Annotations.Filter | undefined
3180
3181 constructor(
3182 checks: readonly [Check<E>, ...Array<Check<E>>],
3183 annotations: Schema.Annotations.Filter | undefined = undefined
3184 ) {
3185 super()
3186 this.checks = checks
3187 this.annotations = annotations
3188 }
3189 annotate(annotations: Schema.Annotations.Filter): FilterGroup<E> {
3190 return new FilterGroup(this.checks, { ...this.annotations, ...annotations })
3191 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected