Skip to content
This repository has been archived by the owner on Jun 11, 2021. It is now read-only.

Commit

Permalink
fix(types): allow arbitrary keys in sources
Browse files Browse the repository at this point in the history
  • Loading branch information
francoischalifour committed Aug 25, 2020
1 parent 74fc681 commit 6ed9e4a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/autocomplete-core/src/types/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ interface OnInputParams<TItem> extends AutocompleteSetters<TItem> {
}

export interface PublicAutocompleteSource<TItem> {
// This allows flavors to pass other keys to their source.
// Example: `templates` in the JavaScript API
[key: string]: unknown;
/**
* Get the string value of the suggestion. The value is used to fill the search box.
*/
Expand Down

0 comments on commit 6ed9e4a

Please sign in to comment.