mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 13:00:19 +00:00
[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:
+8
-1
@@ -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.*/
|
||||
|
||||
Reference in New Issue
Block a user