• Preparing search index...
  • The search index is not available
@coopenomics/sdk
  • @coopenomics/sdk
  • Zeus
  • Thunder

Function Thunder

  • Thunder<SCLR>(fn, thunderGraphQLOptions?): (<O, OVERRIDESCLR, R>(operation, graphqlOptions?) => (<Z>(o, ops?) => Promise<InputType<GraphQLTypes[R], Z, UnionOverrideKeys<SCLR, OVERRIDESCLR>>>))
  • Type Parameters

    • SCLR extends ScalarDefinition

    Parameters

    • fn: FetchFunction
    • Optional thunderGraphQLOptions: ThunderGraphQLOptions<SCLR>

    Returns (<O, OVERRIDESCLR, R>(operation, graphqlOptions?) => (<Z>(o, ops?) => Promise<InputType<GraphQLTypes[R], Z, UnionOverrideKeys<SCLR, OVERRIDESCLR>>>))

      • <O, OVERRIDESCLR, R>(operation, graphqlOptions?): (<Z>(o, ops?) => Promise<InputType<GraphQLTypes[R], Z, UnionOverrideKeys<SCLR, OVERRIDESCLR>>>)
      • Type Parameters

        • O extends "query" | "mutation"
        • OVERRIDESCLR extends ScalarDefinition
        • R extends keyof ValueTypes = GenericOperation<O>

        Parameters

        • operation: O
        • Optional graphqlOptions: ThunderGraphQLOptions<OVERRIDESCLR>

        Returns (<Z>(o, ops?) => Promise<InputType<GraphQLTypes[R], Z, UnionOverrideKeys<SCLR, OVERRIDESCLR>>>)

          • <Z>(o, ops?): Promise<InputType<GraphQLTypes[R], Z, UnionOverrideKeys<SCLR, OVERRIDESCLR>>>
          • Type Parameters

            • Z extends unknown

            Parameters

            • o: Z & {
                  [P in string | number | symbol]: P extends keyof ValueTypes[R]
                      ? Z[P<P>]
                      : never
              }
            • Optional ops: OperationOptions & {
                  variables?: Record<string, unknown>;
              }

            Returns Promise<InputType<GraphQLTypes[R], Z, UnionOverrideKeys<SCLR, OVERRIDESCLR>>>

    • Defined in components/sdk/src/zeus/index.ts:189

Settings

Member Visibility

Theme

@coopenomics/sdk
  • Loading...