[codemirror] Add more hint options (#42194)

* Add more hint options

According to https://github.com/codemirror/CodeMirror/blob/5f722737883bbeadb2a629857d3961490e4134ca/addon/hint/show-hint.js#L453

* Fix function type and add more missing options

* Use HTMLElement for container
This commit is contained in:
Rohit Gohri
2020-02-14 09:29:55 -08:00
committed by GitHub
parent 7675b526b5
commit d66b9a5834
+8 -1
View File
@@ -54,8 +54,15 @@ declare module "codemirror" {
}
interface ShowHintOptions {
completeSingle: boolean;
completeSingle?: boolean;
hint: HintFunction | AsyncHintFunction;
alignWithWord?: boolean;
closeCharacters?: RegExp;
closeOnUnfocus?: boolean;
completeOnSingleClick?: boolean;
container?: HTMLElement | null;
customKeys?: {[x: string]: () => void} | null;
extraKeys?: {[x: string]: () => void} | null;
}
/** The Handle used to interact with the autocomplete dialog box.*/