From a029b45c6db83de4b58baed4611fb804ee721ae1 Mon Sep 17 00:00:00 2001 From: Sixin Li Date: Thu, 5 Nov 2015 15:54:34 -0500 Subject: [PATCH] `state` properties belongs to CodeMirror.Editor, not CodeMorrir.Doc --- codemirror/codemirror-showhint.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/codemirror/codemirror-showhint.d.ts b/codemirror/codemirror-showhint.d.ts index 48a904a3bb..9573f95bc6 100644 --- a/codemirror/codemirror-showhint.d.ts +++ b/codemirror/codemirror-showhint.d.ts @@ -39,11 +39,11 @@ declare module CodeMirror { /** An extension of the existing CodeMirror typings for the Editor.on("keyup", func) syntax */ on(eventName: string, handler: (doc: CodeMirror.Doc, event: any) => void): void; off(eventName: string, handler: (doc: CodeMirror.Doc, event: any) => void): void; + /** Extend CodeMirror.Editor with a state object, so that the Editor.state.completionActive property is reachable*/ + state: any; } - /** Extend CodeMirror.Doc with a state object, so that the Doc.state.completionActive property is reachable*/ interface Doc { - state: any; showHint: (options: ShowHintOptions) => void; }