graphiql
Version:
An graphical interactive in-browser GraphQL IDE.
35 lines • 1.08 kB
TypeScript
import type * as CM from 'codemirror';
import React from 'react';
declare type HeaderEditorProps = {
value?: string;
onEdit: (value: string) => void;
readOnly?: boolean;
onHintInformationRender: (value: HTMLDivElement) => void;
onPrettifyQuery: (value?: string) => void;
onMergeQuery: (value?: string) => void;
onRunQuery: (value?: string) => void;
editorTheme?: string;
active?: boolean;
};
export declare class HeaderEditor extends React.Component<HeaderEditorProps> {
CodeMirror: any;
editor: (CM.Editor & {
options: any;
showHint: any;
}) | null;
cachedValue: string;
private _node;
ignoreChangeEvent: boolean;
constructor(props: HeaderEditorProps);
componentDidMount(): void;
componentDidUpdate(prevProps: HeaderEditorProps): void;
componentWillUnmount(): void;
render(): JSX.Element;
getCodeMirror(): CM.Editor;
getClientHeight(): number | null;
private _onKeyUp;
private _onEdit;
private _onHasCompletion;
}
export {};
//# sourceMappingURL=HeaderEditor.d.ts.map