UNPKG

@graphiql/react

Version:

[Changelog](https://github.com/graphql/graphiql/blob/main/packages/graphiql-react/CHANGELOG.md) | [API Docs](https://graphiql-test.netlify.app/typedoc/modules/graphiql_react.html) | [NPM](https://www.npmjs.com/package/@graphiql/react)

10 lines (9 loc) 607 B
import type { Editor, EditorChange } from 'codemirror'; import { GraphQLNamedType, GraphQLSchema } from 'graphql'; import { ExplorerContextType } from '../explorer'; import { PluginContextType } from '../plugin'; /** * Render a custom UI for CodeMirror's hint which includes additional info * about the type and description for the selected context. */ export declare function onHasCompletion(_cm: Editor, data: EditorChange | undefined, schema: GraphQLSchema | null | undefined, explorer: ExplorerContextType | null, plugin: PluginContextType | null, callback?: (type: GraphQLNamedType) => void): void;