mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Typeahead constructors changed to be generic
This commit is contained in:
Vendored
+2
-2
@@ -13,7 +13,7 @@ interface JQuery {
|
||||
* @param options Options hash that's used for configuration
|
||||
* @param datasets Array of datasets
|
||||
*/
|
||||
typeahead(options: Twitter.Typeahead.Options, datasets: Twitter.Typeahead.Dataset[]): JQuery;
|
||||
typeahead<T>(options: Twitter.Typeahead.Options, datasets: Twitter.Typeahead.Dataset<T>[]): JQuery;
|
||||
|
||||
/**
|
||||
* For a given input[type="text"], enables typeahead functionality.
|
||||
@@ -22,7 +22,7 @@ interface JQuery {
|
||||
* @param options Options hash that's used for configuration
|
||||
* @param datasets One or more datasets passed as rest parameters.
|
||||
*/
|
||||
typeahead(options: Twitter.Typeahead.Options, ...datasets: Twitter.Typeahead.Dataset[]): JQuery;
|
||||
typeahead<T>(options: Twitter.Typeahead.Options, ...datasets: Twitter.Typeahead.Dataset<T>[]): JQuery;
|
||||
|
||||
/**
|
||||
* Returns the current value of the typeahead.
|
||||
|
||||
Reference in New Issue
Block a user