From 0dc27a128e4a1e14797b2680e7a4d9f54ff8203c Mon Sep 17 00:00:00 2001 From: Emin Date: Tue, 31 Jan 2023 09:49:05 +0300 Subject: [PATCH] missing renderHeaderComponent prop type --- GooglePlacesAutocomplete.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GooglePlacesAutocomplete.d.ts b/GooglePlacesAutocomplete.d.ts index 15d5a8a0..c0b31d58 100644 --- a/GooglePlacesAutocomplete.d.ts +++ b/GooglePlacesAutocomplete.d.ts @@ -413,7 +413,7 @@ interface GooglePlacesAutocompleteProps { preProcess?: (text: string) => string; query: Query | Object; renderDescription?: (description: DescriptionRow) => string; - renderHeaderComponent?: () => JSX.Element | React.ComponentType<{}>; + renderHeaderComponent?: (searchText: string) => JSX.Element | React.ComponentType<{}>; renderLeftButton?: () => JSX.Element | React.ComponentType<{}>; renderRightButton?: () => JSX.Element | React.ComponentType<{}>; renderRow?: (