File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -386,7 +386,7 @@ interface GooglePlacesAutocompleteProps {
386
386
isRowScrollable ?: boolean ;
387
387
keyboardShouldPersistTaps ?: 'never' | 'always' | 'handled' ;
388
388
// use the ListEmptyComponent prop when no autocomplete results are found.
389
- listEmptyComponent ?: React . ComponentType < { } > ;
389
+ listEmptyComponent ?: JSX . Element | React . ComponentType < { } > ;
390
390
listUnderlayColor ?: string ;
391
391
listViewDisplayed ?: 'auto' | boolean ;
392
392
minLength ?: number ; // minimum length of text to search
@@ -403,10 +403,11 @@ interface GooglePlacesAutocompleteProps {
403
403
preProcess ?: ( text : string ) => string ;
404
404
query : Query ;
405
405
renderDescription ?: ( description : DescriptionRow ) => string ;
406
- renderHeaderComponent ?: ( ) => React . ComponentType < { } > ;
407
- renderLeftButton ?: ( ) => React . ComponentType < { } > ;
408
- renderRightButton ?: ( ) => React . ComponentType < { } > ;
409
- renderRow ?: ( data : GooglePlaceData ) => React . ComponentType < { } > ;
406
+ renderHeaderComponent ?: ( ) => JSX . Element | React . ComponentType < { } > ;
407
+ renderLeftButton ?: ( ) => JSX . Element | React . ComponentType < { } > ;
408
+ renderRightButton ?: ( ) => JSX . Element | React . ComponentType < { } > ;
409
+ renderRow ?: ( data : GooglePlaceData ) => JSX . Element | React . ComponentType < { } > ;
410
+
410
411
// sets the request URL to something other than the google api. Helpful if you want web support or to use your own api.
411
412
requestUrl ?: RequestUrl ;
412
413
styles ?: Partial < Styles > ;
You can’t perform that action at this time.
0 commit comments