mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 13:00:19 +00:00
[react-select] export deeply non-nullable components (#39341)
This commit is contained in:
committed by
Jesse Trinity
parent
532abbb85d
commit
ce23bc466a
+5
-1
@@ -82,7 +82,11 @@ export interface SelectComponents<OptionType extends OptionTypeBase> {
|
||||
|
||||
export type SelectComponentsConfig<OptionType extends OptionTypeBase> = Partial<SelectComponents<OptionType>>;
|
||||
|
||||
export const components: Required<SelectComponents<any>>;
|
||||
export type DeepNonNullable<T> = {
|
||||
[P in keyof T]-?: NonNullable<T[P]>;
|
||||
};
|
||||
|
||||
export const components: Required<DeepNonNullable<SelectComponents<any>>>;
|
||||
|
||||
export interface Props<OptionType extends OptionTypeBase> {
|
||||
components: SelectComponentsConfig<OptionType>;
|
||||
|
||||
Reference in New Issue
Block a user