mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-03 22:37:03 +00:00
Merge pull request #34601 from yaroslavgribov/master
[@types/react-select] Make SingleValue children prop accept children of type ReactNode
This commit is contained in:
+2
-2
@@ -1,4 +1,4 @@
|
||||
import { ComponentType } from 'react';
|
||||
import { ComponentType, ReactNode } from 'react';
|
||||
import { colors, spacing } from '../theme';
|
||||
import { CommonProps } from '../types';
|
||||
|
||||
@@ -8,7 +8,7 @@ interface State {
|
||||
}
|
||||
interface ValueProps<OptionType> {
|
||||
/** The children to be rendered. */
|
||||
children: string;
|
||||
children: ReactNode;
|
||||
/* The data of the selected option rendered in the Single Value componentn */
|
||||
data: OptionType;
|
||||
/** Props passed to the wrapping element for the group. */
|
||||
|
||||
Reference in New Issue
Block a user