From ce23bc466afc35886dff8d1fd6024d160893fa9e Mon Sep 17 00:00:00 2001 From: Daniel Del Core Date: Tue, 29 Oct 2019 01:55:10 +1100 Subject: [PATCH] [react-select] export deeply non-nullable components (#39341) --- types/react-select/src/components/index.d.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/types/react-select/src/components/index.d.ts b/types/react-select/src/components/index.d.ts index cbba375561..b6887dca49 100644 --- a/types/react-select/src/components/index.d.ts +++ b/types/react-select/src/components/index.d.ts @@ -82,7 +82,11 @@ export interface SelectComponents { export type SelectComponentsConfig = Partial>; -export const components: Required>; +export type DeepNonNullable = { + [P in keyof T]-?: NonNullable; +}; + +export const components: Required>>; export interface Props { components: SelectComponentsConfig;