MCPcopy Create free account
hub / github.com/effect-app/libs / saveWithPure_

Function saveWithPure_

packages/effect-app/src/Model/Repository/ext.ts:68–83  ·  view source on GitHub ↗
(
    item: S1,
    pure: Effect.Effect<A, E, FixEnv<R, Evt, S1, S2>>
  )

Source from the content-addressed store, hash-verified

66 }
67
68 function saveWithPure_<
69 R,
70 A,
71 E,
72 S1 extends T,
73 S2 extends T
74 >(
75 item: S1,
76 pure: Effect.Effect<A, E, FixEnv<R, Evt, S1, S2>>
77 ) {
78 return saveAllWithEffectInt(
79 runTerm(pure, item)
80 .pipe(Effect
81 .map(([item, events, a]) => [[item], events, a]))
82 )
83 }
84
85 function saveAllWithEffectInt<
86 P extends T,

Callers 2

queryAndSavePureFunction · 0.85
byIdAndSaveWithPureFunction · 0.85

Calls 4

runTermFunction · 0.90
saveAllWithEffectIntFunction · 0.85
pipeMethod · 0.65
mapMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…