chore: remove residual FC and FunctionComponent from components

This commit is contained in:
Bryan Lee committed 2022-08-12 10:56:22 +08:00
1 parent d3b4906da9
commit 495d9ccc0c
88 files changed
+99 -123

No files matched your search

+2 -5
View File
@@ -24,10 +24,7 @@ interface ErrorBoundaryPropsWithComponent {
declare function FallbackRender(
props: FallbackProps
): React.ReactElement<
unknown,
string | React.FunctionComponent | typeof React.Component
> | null;
): React.ReactElement<unknown, string | typeof React.Component> | null;
interface ErrorBoundaryPropsWithRender {
onResetKeysChange?: (
@@ -52,7 +49,7 @@ interface ErrorBoundaryPropsWithFallback {
resetKeys?: Array<unknown>;
fallback: React.ReactElement<
unknown,
string | React.FunctionComponent | typeof React.Component
string | typeof React.Component
> | null;
FallbackComponent?: never;
fallbackRender?: never;