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

Method constructor

packages/effect/src/SchemaAST.ts:2840–2853  ·  view source on GitHub ↗
(
    types: ReadonlyArray<A>,
    mode: "anyOf" | "oneOf",
    annotations?: Schema.Annotations.Annotations,
    checks?: Checks,
    encoding?: Encoding,
    context?: Context,
    encodingChecks?: Checks
  )

Source from the content-addressed store, hash-verified

2838 readonly encodingChecks: Checks | undefined
2839
2840 constructor(
2841 types: ReadonlyArray<A>,
2842 mode: "anyOf" | "oneOf",
2843 annotations?: Schema.Annotations.Annotations,
2844 checks?: Checks,
2845 encoding?: Encoding,
2846 context?: Context,
2847 encodingChecks?: Checks
2848 ) {
2849 super(annotations, checks, encoding, context)
2850 this.types = types
2851 this.mode = mode
2852 this.encodingChecks = encodingChecks
2853 }
2854 /** @internal */
2855 getParser(
2856 compile: SchemaParser.Compiler,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected