[codemirror] Add more hint options (#42194)

* Add more hint options

According to 5f72273788/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 22:59:55 +05:30 committed by GitHub
parent 7675b526b5
commit d66b9a5834
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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.*/