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

Method constructor

packages/effect/src/SchemaTransformation.ts:149–155  ·  view source on GitHub ↗
(
    decode: SchemaGetter.Getter<T, E, RD>,
    encode: SchemaGetter.Getter<E, T, RE>
  )

Source from the content-addressed store, hash-verified

147 readonly encode: SchemaGetter.Getter<E, T, RE>
148
149 constructor(
150 decode: SchemaGetter.Getter<T, E, RD>,
151 encode: SchemaGetter.Getter<E, T, RE>
152 ) {
153 this.decode = decode
154 this.encode = encode
155 }
156 flip(): Transformation<E, T, RE, RD> {
157 return new Transformation(this.encode, this.decode)
158 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected