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

Function makeAndThen

packages/effect/src/internal/differ/contextPatch.ts:53–61  ·  view source on GitHub ↗
(
  first: Differ.Context.Patch<Input, Output>,
  second: Differ.Context.Patch<Output, Output2>
)

Source from the content-addressed store, hash-verified

51})
52
53const makeAndThen = <Input, Output, Output2>(
54 first: Differ.Context.Patch<Input, Output>,
55 second: Differ.Context.Patch<Output, Output2>
56): Differ.Context.Patch<Input, Output2> => {
57 const o = Object.create(AndThenProto)
58 o.first = first
59 o.second = second
60 return o
61}
62
63/** @internal */
64export interface AddService<in out Env, in out T, in out I> extends Differ.Context.Patch<Env, Env | I> {

Callers 1

contextPatch.tsFile · 0.70

Calls 1

createMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…