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

Function callContext

packages/effect/src/graphql/GraphQLClient.ts:343–344  ·  view source on GitHub ↗
(options: CallOptions<R2> | undefined)

Source from the content-addressed store, hash-verified

341// Type boundary: a call without `context` has `R2 = never` unless the caller
342// names `R2` explicitly, so an empty context stands in for `Context<R2>`.
343const callContext = <R2>(options: CallOptions<R2> | undefined): Context.Context<R2> =>
344 options?.context ?? (Context.empty() as Context.Context<R2>)
345
346const makeMethod = <Op extends GraphQL.Any>(
347 operation: Op,

Callers 2

subscriptionMethodFunction · 0.85
methodFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected