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

Method constructor

packages/effect/src/SchemaAST.ts:3137–3149  ·  view source on GitHub ↗
(
    run: (input: E, self: AST, options: ParseOptions) => SchemaIssue.Issue | undefined,
    annotations: Schema.Annotations.Filter | undefined = undefined,
    /**
     * Whether the parsing process should be aborted after this check has failed.
     */
    aborted: boolean = false
  )

Source from the content-addressed store, hash-verified

3135 readonly aborted: boolean
3136
3137 constructor(
3138 run: (input: E, self: AST, options: ParseOptions) => SchemaIssue.Issue | undefined,
3139 annotations: Schema.Annotations.Filter | undefined = undefined,
3140 /**
3141 * Whether the parsing process should be aborted after this check has failed.
3142 */
3143 aborted: boolean = false
3144 ) {
3145 super()
3146 this.run = run
3147 this.annotations = annotations
3148 this.aborted = aborted
3149 }
3150 annotate(annotations: Schema.Annotations.Filter): Filter<E> {
3151 return new Filter(this.run, { ...this.annotations, ...annotations }, this.aborted)
3152 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected