From 18e88aee249f02769d55599dd209e2ca73c0600d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Chalifour?= Date: Tue, 8 Sep 2020 15:47:13 +0200 Subject: [PATCH] fix(core): fix type for `getSources` --- packages/autocomplete-core/src/types/api.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/packages/autocomplete-core/src/types/api.ts b/packages/autocomplete-core/src/types/api.ts index f941d95b7..e80e67373 100644 --- a/packages/autocomplete-core/src/types/api.ts +++ b/packages/autocomplete-core/src/types/api.ts @@ -84,11 +84,7 @@ export interface PublicAutocompleteSource { /** * Function called when the input changes. You can use this function to filter/search the items based on the query. */ - getSuggestions( - params: GetSourcesParams - ): - | Array> - | Promise>>; + getSuggestions(params: GetSourcesParams): TItem[] | Promise; /** * Function called when an item is selected. */