From 30d3b54028ff0eeb8603c6d15f35b0e120c55564 Mon Sep 17 00:00:00 2001 From: Basarat Ali Syed Date: Wed, 9 Sep 2015 12:55:39 +1000 Subject: [PATCH] more codemirror-hint fixes --- codemirror/codemirror-showhint.d.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/codemirror/codemirror-showhint.d.ts b/codemirror/codemirror-showhint.d.ts index 26c632ee6..8ab50c090 100644 --- a/codemirror/codemirror-showhint.d.ts +++ b/codemirror/codemirror-showhint.d.ts @@ -3,6 +3,8 @@ // Definitions by: jacqt , basarat // Definitions: https://github.com/borisyankov/DefinitelyTyped +// See docs https://codemirror.net/doc/manual.html#addon_show-hint + declare module CodeMirror { var commands : any; @@ -30,7 +32,7 @@ declare module CodeMirror { from?: Position; /** Called if a completion is picked. If provided *you* are responsible for applying the completion */ hint?: (cm: any, data: Hints, cur: Hint) => void; - render?: (element: HTMLLIElement, self: any, data: Hints) => void; + render?: (element: HTMLLIElement, data: Hints, cur: Hint) => void; to?: Position; }