@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)
12 lines (11 loc) • 530 B
TypeScript
/// <reference types="react" />
import { WriteableEditorProps } from './types';
export declare type UseHeaderEditorArgs = WriteableEditorProps & {
/**
* Invoked when the contents of the headers editor change.
* @param value The new contents of the editor.
*/
onEdit?(value: string): void;
};
export declare function useHeaderEditor({ editorTheme, keyMap, onEdit, readOnly, }?: UseHeaderEditorArgs, caller?: Function): import("react").RefObject<HTMLDivElement>;
export declare const STORAGE_KEY = "headers";