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

Function json

packages/opencode/test/server/httpapi-mcp.test.ts:46–46  ·  view source on GitHub ↗
(response: Response)

Source from the content-addressed store, hash-verified

44})
45
46const json = <A>(response: Response) => Effect.promise(() => response.json() as Promise<A>)
47
48const readResponse = Effect.fnUntraced(function* (input: { app: TestApp; path: string; headers: HeadersInit }) {
49 const response = yield* Effect.promise(() =>

Callers 1

Calls 1

jsonMethod · 0.65

Tested by

no test coverage detected