UNPKG

@graphql-hive/cli

Version:

A CLI util to manage and control your GraphQL Hive

21 lines 1.35 kB
import { LegacyLogger } from '@graphql-hive/core/typings/client/types'; import type { TypedDocumentNode } from '@graphql-typed-document-node/core'; import { FragmentType } from '../gql'; import { SchemaWarningConnection } from '../gql/graphql'; export declare const RenderErrors_SchemaErrorConnectionFragment: TypedDocumentNode<import("../gql/graphql").RenderErrors_SchemaErrorConnectionFragmentFragment, unknown>; export declare const renderErrors: (errors: FragmentType<typeof RenderErrors_SchemaErrorConnectionFragment>) => string; declare const RenderChanges_SchemaChanges: TypedDocumentNode<import("../gql/graphql").RenderChanges_SchemaChangesFragment, unknown>; export declare const renderChanges: (maskedChanges: FragmentType<typeof RenderChanges_SchemaChanges>) => string; export declare const renderWarnings: (warnings: SchemaWarningConnection) => string; export declare function loadSchema( /** * Behaviour for loading the schema from a HTTP endpoint. */ httpLoadingIntent: 'first-federation-then-graphql-introspection' | 'only-graphql-introspection' | 'only-federation-introspection' | null, file: string, options: { logger: LegacyLogger; headers?: Record<string, string>; method?: 'GET' | 'POST'; }): Promise<string>; export declare function minifySchema(schema: string): string; export {}; //# sourceMappingURL=schema.d.ts.map