| 57 | // with Autocomplete.defaults. Keeping these required in ResolvedOptions removes |
| 58 | // dozens of `as number` / `as string` / `!` casts from the implementation. |
| 59 | interface DefaultedOptions { |
| 60 | ajaxSettings: JQuery.AjaxSettings; |
| 61 | autoSelectFirst: boolean; |
| 62 | appendTo: string | Element | JQuery; |
| 63 | width: WidthOption; |
| 64 | minChars: number; |
| 65 | maxHeight: number; |
| 66 | deferRequestBy: number; |
| 67 | params: Record<string, unknown>; |
| 68 | formatResult: FormatResult; |
| 69 | formatGroup: FormatGroup; |
| 70 | zIndex: number; |
| 71 | type: string; |
| 72 | noCache: boolean; |
| 73 | onSearchStart: SearchStartCallback; |
| 74 | onSearchComplete: SearchCompleteCallback; |
| 75 | onSearchError: SearchErrorCallback; |
| 76 | preserveInput: boolean; |
| 77 | containerClass: string; |
| 78 | tabDisabled: boolean; |
| 79 | dataType: "text" | "json" | "jsonp"; |
| 80 | triggerSelectOnValidInput: boolean; |
| 81 | preventBadQueries: boolean; |
| 82 | lookupFilter: LookupFilter; |
| 83 | paramName: string; |
| 84 | transformResult: TransformResult; |
| 85 | showNoSuggestionNotice: boolean; |
| 86 | noSuggestionNotice: string | HTMLElement | JQuery; |
| 87 | orientation: Orientation; |
| 88 | forceFixPosition: boolean; |
| 89 | } |
| 90 | |
| 91 | // Fields that are genuinely optional — no default exists. Code paths that read |
| 92 | // them must handle `undefined` (or `null` where the JS source documented it). |
nothing calls this directly
no outgoing calls
no test coverage detected