mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-11 15:16:28 +08:00
Merge pull request #204 from liby/feature/remove-react-fc
chore: remove residual `FC` and `FunctionComponent` from components
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user