MCPcopy Create free account
hub / github.com/Effect-TS/effect / responseExitSuccess

Function responseExitSuccess

packages/rpc/test/RpcSerialization.test.ts:24–31  ·  view source on GitHub ↗
(requestId: string, value: unknown)

Source from the content-addressed store, hash-verified

22})
23
24const responseExitSuccess = (requestId: string, value: unknown) => ({
25 _tag: "Exit",
26 requestId,
27 exit: {
28 _tag: "Success",
29 value
30 }
31})
32
33const parseResponses = (encoded: string) => {
34 const responses = encoded.trim().split("\n").map((response) => JSON.parse(response))

Callers 1

assertBatchRoundTripFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected