UNPKG

@graphql-hive/laboratory

Version:

[Hive](https://the-guild.dev/graphql/hive) is a fully open-source schema registry, analytics, metrics and gateway for [GraphQL federation](https://the-guild.dev/graphql/hive/federation) and other GraphQL APIs.

17 lines (16 loc) 701 B
import { IntrospectionQuery } from 'graphql'; import { MonacoGraphQLAPI } from 'monaco-graphql/esm/api.js'; export type SyncMonacoGraphQLInput = { introspection: IntrospectionQuery; schemaUri: string; operationUri?: string; variablesUri?: string; /** * Hand the hover to our own provider, which rebuilds the same content and adds * the docs link. Without it monaco-graphql keeps serving hovers as before. */ enableDocs?: boolean; }; export declare function syncMonacoGraphQL(input: SyncMonacoGraphQLInput): MonacoGraphQLAPI; /** Test seam: clears the module-level mode and its accumulated mappings. */ export declare function resetMonacoGraphQLForTests(): void;