@graphql-hive/cli
Version:
A CLI util to manage and control your GraphQL Hive
22 lines • 904 B
TypeScript
import { type GraphQLError } from 'graphql';
import { LegacyLogger } from '@graphql-hive/core/typings/client/types';
import type { TypedDocumentNode } from '@graphql-typed-document-node/core';
export declare function graphqlRequest(config: {
endpoint: string;
additionalHeaders?: Record<string, string>;
version?: string;
logger?: LegacyLogger;
}): {
request: <TResult, TVariables>(args: {
operation: TypedDocumentNode<TResult, TVariables>;
/** timeout in milliseconds */
timeout?: number;
} & (TVariables extends Record<string, never> ? {
variables?: never;
} : {
variables: TVariables;
})) => Promise<TResult>;
};
export declare function cleanRequestId(requestId?: string | null): string | undefined;
export declare function isIntrospectionDisabledError(error: GraphQLError): boolean;
//# sourceMappingURL=graphql-request.d.ts.map