From 337b3709d6c9640991a210194b0c20afd855e4c2 Mon Sep 17 00:00:00 2001 From: Vendicated Date: Tue, 28 Mar 2023 19:06:58 +0200 Subject: [PATCH] types: Make ErrorBoundary.wrap explicitly return Function --- src/components/ErrorBoundary.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/ErrorBoundary.tsx b/src/components/ErrorBoundary.tsx index 62b92a03..c34b47d2 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 => (