MCPcopy Create free account
hub / github.com/anomalyco/opencode / use

Function use

packages/opencode/src/effect/instance-state.ts:52–52  ·  view source on GitHub ↗
(self: InstanceState<A, E, R>, select: (value: A) => B)

Source from the content-addressed store, hash-verified

50 })
51
52export const use = <A, E, R, B>(self: InstanceState<A, E, R>, select: (value: A) => B) => Effect.map(get(self), select)
53
54export const useEffect = <A, E, R, B, E2, R2>(
55 self: InstanceState<A, E, R>,

Callers

nothing calls this directly

Calls 1

getFunction · 0.70

Tested by

no test coverage detected