mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
[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:
parent
7675b526b5
commit
d66b9a5834
9
types/codemirror/addon/hint/show-hint.d.ts
vendored
9
types/codemirror/addon/hint/show-hint.d.ts
vendored
@ -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.*/
|
||||
|
||||
Loading…
Reference in New Issue
Block a user