From 61f9abfd1bd1e7f8904edfbdfadf8cd5aab30257 Mon Sep 17 00:00:00 2001 From: Jeroen Claassens Date: Thu, 14 Apr 2022 01:44:30 +0200 Subject: [PATCH] fix: export additional types for end-users --- src/types.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/types.ts b/src/types.ts index 1a1495dd..c9a45ed4 100644 --- a/src/types.ts +++ b/src/types.ts @@ -60,7 +60,7 @@ export type ComponentWithConditionPropsAsyncSupport = FunctionComponentWithImplicitChildren

; -interface FunctionComponentWithImplicitChildren

{ +export interface FunctionComponentWithImplicitChildren

{ (props: CustomPropsWithChildren

, context?: any): ReactElement | null; propTypes?: WeakValidationMap

| undefined; contextTypes?: ValidationMap | undefined; @@ -69,6 +69,6 @@ interface FunctionComponentWithImplicitChildren

{ } // eslint-disable-next-line @typescript-eslint/ban-types -type NonNullObject = {} & object; +export type NonNullObject = {} & object; export type CustomPropsWithChildren

= P & { children?: ReactNode | undefined | ((...args: unknown[]) => JSX.Element) };