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

Method constructor

packages/effect/src/SchemaGetter.ts:70–78  ·  view source on GitHub ↗
(
    run: (
      input: Option.Option<E>,
      options: SchemaAST.ParseOptions
    ) => Effect.Effect<Option.Option<T>, SchemaIssue.Issue, R>
  )

Source from the content-addressed store, hash-verified

68 ) => Effect.Effect<Option.Option<T>, SchemaIssue.Issue, R>
69
70 constructor(
71 run: (
72 input: Option.Option<E>,
73 options: SchemaAST.ParseOptions
74 ) => Effect.Effect<Option.Option<T>, SchemaIssue.Issue, R>
75 ) {
76 super()
77 this.run = run
78 }
79 map<T2>(f: (t: T) => T2): Getter<T2, E, R> {
80 return new Getter((oe, options) => this.run(oe, options).pipe(Effect.mapEager(Option.map(f))))
81 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected