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

Method compose

packages/effect/src/SchemaTransformation.ts:159–164  ·  view source on GitHub ↗
(other: Transformation<T2, T, RD2, RE2>)

Source from the content-addressed store, hash-verified

157 return new Transformation(this.encode, this.decode)
158 }
159 compose<T2, RD2, RE2>(other: Transformation<T2, T, RD2, RE2>): Transformation<T2, E, RD | RD2, RE | RE2> {
160 return new Transformation(
161 this.decode.compose(other.decode),
162 other.encode.compose(this.encode)
163 )
164 }
165}
166
167/**

Callers

nothing calls this directly

Calls 1

composeMethod · 0.65

Tested by

no test coverage detected