From 74519e624cb1d9c6727000eca19c0583b920175d Mon Sep 17 00:00:00 2001 From: Yaroslav Gribov Date: Tue, 9 Apr 2019 23:12:20 +0300 Subject: [PATCH] make single value children prop consistent with other components --- types/react-select/lib/components/SingleValue.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/react-select/lib/components/SingleValue.d.ts b/types/react-select/lib/components/SingleValue.d.ts index c727b2242e..bfb9cbca8c 100644 --- a/types/react-select/lib/components/SingleValue.d.ts +++ b/types/react-select/lib/components/SingleValue.d.ts @@ -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 { /** 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. */