mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-03 22:37:03 +00:00
JSX.Element -> React.ReactNode
This commit is contained in:
Vendored
+4
-4
@@ -113,13 +113,13 @@ declare namespace Autosuggest {
|
||||
event: React.FormEvent<any>,
|
||||
data: SuggestionSelectedEventData<TSuggestion>,
|
||||
) => void;
|
||||
type RenderInputComponent<TSuggestion> = (inputProps: InputProps<TSuggestion>) => JSX.Element;
|
||||
type RenderSuggestionsContainer = (params: RenderSuggestionsContainerParams) => JSX.Element;
|
||||
type RenderSectionTitle = (section: any) => JSX.Element;
|
||||
type RenderInputComponent<TSuggestion> = (inputProps: InputProps<TSuggestion>) => React.ReactNode;
|
||||
type RenderSuggestionsContainer = (params: RenderSuggestionsContainerParams) => React.ReactNode;
|
||||
type RenderSectionTitle = (section: any) => React.ReactNode;
|
||||
type RenderSuggestion<TSuggestion> = (
|
||||
suggestion: TSuggestion,
|
||||
params: RenderSuggestionParams,
|
||||
) => JSX.Element;
|
||||
) => React.ReactNode;
|
||||
type ShouldRenderSuggestions = (value: string) => boolean;
|
||||
|
||||
interface AutosuggestProps<TSuggestion> {
|
||||
|
||||
Reference in New Issue
Block a user