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

Function json

packages/opencode/test/server/session-messages.test.ts:84–86  ·  view source on GitHub ↗
(response: HttpClientResponse.HttpClientResponse)

Source from the content-addressed store, hash-verified

82}
83
84function json<T>(response: HttpClientResponse.HttpClientResponse) {
85 return response.json.pipe(Effect.map((body) => body as T))
86}
87
88describe("session messages endpoint", () => {
89 it.instance(

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected