diff --git a/src/components/ErrorBoundary.tsx b/src/components/ErrorBoundary.tsx index 62b92a03f..c34b47d20 100644 --- a/src/components/ErrorBoundary.tsx +++ b/src/components/ErrorBoundary.tsx @@ -105,7 +105,7 @@ const ErrorBoundary = LazyComponent(() => { }; }) as React.ComponentType> & { - wrap(Component: React.ComponentType, errorBoundaryProps?: Omit, "wrappedProps">): React.ComponentType; + wrap(Component: React.ComponentType, errorBoundaryProps?: Omit, "wrappedProps">): React.FunctionComponent; }; ErrorBoundary.wrap = (Component, errorBoundaryProps) => props => (