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

Function ok

packages/opencode/test/cli/run/runtime.test.ts:75–82  ·  view source on GitHub ↗
(data: T)

Source from the content-addressed store, hash-verified

73}
74
75function ok<T>(data: T) {
76 return Promise.resolve({
77 data,
78 error: undefined,
79 request: new Request("https://opencode.test"),
80 response: new Response(),
81 })
82}
83
84function footer(): FooterApi {
85 let closed = false

Callers 1

runtime.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected