From 99af57723fe12c1e34446712160b120af2507214 Mon Sep 17 00:00:00 2001 From: fzaninotto Date: Thu, 19 Dec 2019 11:14:03 +0100 Subject: [PATCH] Fix matchSuggestion Type --- packages/ra-core/src/form/useSuggestions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/ra-core/src/form/useSuggestions.ts b/packages/ra-core/src/form/useSuggestions.ts index 791216fa229..bba5f4983bd 100644 --- a/packages/ra-core/src/form/useSuggestions.ts +++ b/packages/ra-core/src/form/useSuggestions.ts @@ -98,7 +98,7 @@ interface Options extends UseChoicesOptions { emptyText?: string; emptyValue?: any; limitChoicesToValue?: boolean; - matchSuggestion?: (filter: string) => (suggestion: any) => boolean; + matchSuggestion?: (filter: string, suggestion: any) => boolean; suggestionLimit?: number; selectedItem?: any | any[]; }