MCPcopy Index your code
hub / github.com/anomalyco/opencode / required

Function required

packages/core/test/plugin/provider-opencode.test.ts:28–31  ·  view source on GitHub ↗
(value: T | undefined)

Source from the content-addressed store, hash-verified

26})
27
28function required<T>(value: T | undefined): T {
29 if (value === undefined) throw new Error("Expected value")
30 return value
31}
32
33function eventually<A>(
34 effect: Effect.Effect<A>,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected