Merge pull request #5744 from borisyankov/fix/codemirror-showhint

more codemirror-hint fixes
This commit is contained in:
Basarat Ali Syed
2015-09-09 13:30:17 +10:00
+3 -1
View File
@@ -3,6 +3,8 @@
// Definitions by: jacqt <https://github.com/jacqt>, basarat <https://github.com/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;
}