Skip to content

Fix the TypeScript description #501

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 22, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions typings/jquery-autocomplete/jquery.autocomplete-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,7 @@ input.autocomplete({
formatResult(suggestion: AutocompleteSuggestion, currentValue: string): string {
return currentValue;
},
groupBy: [
{ value: 'Chicago Blackhawks', data: { category: 'NHL' } },
{ value: 'Chicago Bulls', data: { category: 'NBA' } }
],
groupBy: "category",
maxHeight: 300,
width: "auto",
zIndex: 9999,
Expand Down
9 changes: 3 additions & 6 deletions typings/jquery-autocomplete/jquery.autocomplete.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ interface JQueryAutocompleteOptions {
* Callback function or lookup array for the suggestions. It may be array of strings or suggestion object literals.
* -> suggestion: An object literal with the following format: { value: 'string', data: any }.
*/
lookup?: AutocompleteSuggestion[];
lookup?: Function | AutocompleteSuggestion[];

/**
* Filter function for local lookups. By default it does partial string match (case insensitive).
Expand Down Expand Up @@ -184,7 +184,8 @@ interface JQueryAutocompleteOptions {
/**
* Property name of the suggestion data object, by which results should be grouped.
*/
groupBy?: AutocompleteSuggestion | AutocompleteSuggestion[];
groupBy?: string;

/**
* Maximum height of the suggestions container in pixels.
* @default 300
Expand Down Expand Up @@ -353,10 +354,6 @@ interface JQuery {
*/
autocomplete(methodName: "dispose"): AutocompleteInstance;

}

interface JQuery {

/**
* Create Autocomplete component via plugin alias
*/
Expand Down