codemirror-graphql
Version:
GraphQL mode and helpers for CodeMirror.
18 lines (13 loc) • 378 B
TypeScript
import 'codemirror/addon/hint/show-hint';
declare module 'codemirror' {
let Init: any;
interface Editor {
doc: CodeMirror.Doc;
getHelper(pos: { line: number; ch: number }, type: string): any;
getHelpers(pos: { line: number; ch: number }, type: string): any[];
}
interface ShowHintOptions {
hint?: ShowHintOptions['hint'];
}
const hint: object;
}