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

Function decodeSuccess

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

Source from the content-addressed store, hash-verified

18860 )
18861 : (f) => (request) => Effect.flatMap(httpClient.execute(request), f)
18862 const decodeSuccess = <A, I, R>(schema: S.Schema<A, I, R>) => (response: HttpClientResponse.HttpClientResponse) =>
18863 HttpClientResponse.schemaBodyJson(schema)(response)
18864 const decodeError =
18865 <const Tag extends string, A, I, R>(tag: Tag, schema: S.Schema<A, I, R>) =>
18866 (response: HttpClientResponse.HttpClientResponse) =>

Callers 1

makeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected