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

Function decodeStrict

packages/effect/src/internal/graphql.ts:240–246  ·  view source on GitHub ↗
(
    result: ExecutionResult
  )

Source from the content-addressed store, hash-verified

238 }
239
240 const decodeStrict = (
241 result: ExecutionResult
242 ): Effect.Effect<GraphQL.Result<Op>, GraphQLClientError, Op["result"]["DecodingServices"]> =>
243 !isStatusOk(result) || isReadonlyArrayNonEmpty(result.errors ?? []) || result.data === null ||
244 result.data === undefined
245 ? failResponse(result)
246 : decodeData(result.data)
247
248 const decodePartial = (
249 result: ExecutionResult

Callers 1

methodFunction · 0.85

Calls 3

isStatusOkFunction · 0.85
failResponseFunction · 0.85
decodeDataFunction · 0.85

Tested by

no test coverage detected