mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-16 11:02:11 +08:00
typeahead. Allow funtction as displayKey.
This commit is contained in:
4
typeahead/typeahead.d.ts
vendored
4
typeahead/typeahead.d.ts
vendored
@@ -119,8 +119,8 @@ declare module Twitter.Typeahead {
|
||||
* For a given suggestion object, determines the string representation of it.
|
||||
* This will be used when setting the value of the input control after a suggestion is selected. Can be either a key string or a function that transforms a suggestion object into a string.
|
||||
* Defaults to value.
|
||||
*/
|
||||
displayKey?: string;
|
||||
*/
|
||||
displayKey?: string | ((obj: any) => string);
|
||||
|
||||
/**
|
||||
* A hash of templates to be used when rendering the dataset.
|
||||
|
||||
Reference in New Issue
Block a user