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

Method constructor

packages/effect/src/SchemaAST.ts:687–702  ·  view source on GitHub ↗
(
    typeParameters: ReadonlyArray<AST>,
    run: (
      typeParameters: ReadonlyArray<AST>
    ) => (input: unknown, self: Declaration, options: ParseOptions) => Effect.Effect<any, SchemaIssue.Issue, any>,
    annotations?: Schema.Annotations.Annotations,
    checks?: Checks,
    encoding?: Encoding,
    context?: Context,
    encodingChecks?: Checks
  )

Source from the content-addressed store, hash-verified

685 readonly encodingChecks: Checks | undefined
686
687 constructor(
688 typeParameters: ReadonlyArray<AST>,
689 run: (
690 typeParameters: ReadonlyArray<AST>
691 ) => (input: unknown, self: Declaration, options: ParseOptions) => Effect.Effect<any, SchemaIssue.Issue, any>,
692 annotations?: Schema.Annotations.Annotations,
693 checks?: Checks,
694 encoding?: Encoding,
695 context?: Context,
696 encodingChecks?: Checks
697 ) {
698 super(annotations, checks, encoding, context)
699 this.typeParameters = typeParameters
700 this.run = run
701 this.encodingChecks = encodingChecks
702 }
703 /** @internal */
704 getParser(): SchemaParser.Parser {
705 let run: ReturnType<typeof this.run>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected