Skip to content

Commit

Permalink
fix(core): fix type for getSources
Browse files Browse the repository at this point in the history
  • Loading branch information
francoischalifour committed Sep 8, 2020
1 parent 3e4829a commit 18e88ae
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/autocomplete-core/src/types/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,7 @@ export interface PublicAutocompleteSource<TItem> {
/**
* Function called when the input changes. You can use this function to filter/search the items based on the query.
*/
getSuggestions(
params: GetSourcesParams<TItem>
):
| Array<AutocompleteSuggestion<TItem>>
| Promise<Array<AutocompleteSuggestion<TItem>>>;
getSuggestions(params: GetSourcesParams<TItem>): TItem[] | Promise<TItem[]>;
/**
* Function called when an item is selected.
*/
Expand Down

0 comments on commit 18e88ae

Please sign in to comment.