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)

22 lines (21 loc) 630 B
import { ComponentType, FC } from 'react'; import { EditorProps } from '../types'; import type * as monaco from 'monaco-editor'; declare type ResponseTooltipType = ComponentType<{ /** * A position in the editor. */ position: monaco.Position; /** * Word that has been hovered over. */ word: monaco.editor.IWordAtPosition; }>; interface ResponseEditorProps extends EditorProps { /** * Customize the tooltip when hovering over properties in the response editor. */ responseTooltip?: ResponseTooltipType; } export declare const ResponseEditor: FC<ResponseEditorProps>; export {};