Skip to content

Commit 2b29ca6

Browse files
author
Tomas Kirda
authored
Merge pull request #590 from stonio/patch-5
TypeScript - Update lookup definition
2 parents d556a87 + bfd9899 commit 2b29ca6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

typings/jquery-autocomplete/jquery.autocomplete.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ interface JQueryAutocompleteOptions {
130130
* Callback function or lookup array for the suggestions. It may be array of strings or suggestion object literals.
131131
* -> suggestion: An object literal with the following format: { value: 'string', data: any }.
132132
*/
133-
lookup?: Function | AutocompleteSuggestion[];
133+
lookup?: { (query: string, done: { (results: AutocompleteResponse): void }): void } | string[] | AutocompleteSuggestion[];
134134

135135
/**
136136
* Filter function for local lookups. By default it does partial string match (case insensitive).

0 commit comments

Comments
 (0)