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

Method constructor

packages/effect/src/SchemaAST.ts:1058–1067  ·  view source on GitHub ↗
(
    enums: ReadonlyArray<readonly [string, string | number]>,
    annotations?: Schema.Annotations.Annotations,
    checks?: Checks,
    encoding?: Encoding,
    context?: Context
  )

Source from the content-addressed store, hash-verified

1056 readonly enums: ReadonlyArray<readonly [string, string | number]>
1057
1058 constructor(
1059 enums: ReadonlyArray<readonly [string, string | number]>,
1060 annotations?: Schema.Annotations.Annotations,
1061 checks?: Checks,
1062 encoding?: Encoding,
1063 context?: Context
1064 ) {
1065 super(annotations, checks, encoding, context)
1066 this.enums = enums
1067 }
1068 /** @internal */
1069 getParser() {
1070 const values = new Set<unknown>(this.enums.map(([, v]) => v))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected