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

Function decodeSuccess

packages/ai/openrouter/src/Generated.ts:5108–5109  ·  view source on GitHub ↗
(schema: S.Schema<A, I, R>)

Source from the content-addressed store, hash-verified

5106 )
5107 : (f) => (request) => Effect.flatMap(httpClient.execute(request), f)
5108 const decodeSuccess = <A, I, R>(schema: S.Schema<A, I, R>) => (response: HttpClientResponse.HttpClientResponse) =>
5109 HttpClientResponse.schemaBodyJson(schema)(response)
5110 const decodeError =
5111 <const Tag extends string, A, I, R>(tag: Tag, schema: S.Schema<A, I, R>) =>
5112 (response: HttpClientResponse.HttpClientResponse) =>

Callers 1

makeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected