aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVendicated <vendicated@riseup.net>2023-03-28 19:06:58 +0200
committerVendicated <vendicated@riseup.net>2023-03-28 19:06:58 +0200
commit337b3709d6c9640991a210194b0c20afd855e4c2 (patch)
tree55128618661e5bb961c319eff945d509ac5bb87c /src
parenteb318c678f52269bfd159a8f11dcc6a3c9296e80 (diff)
downloadVencord-337b3709d6c9640991a210194b0c20afd855e4c2.tar.gz
Vencord-337b3709d6c9640991a210194b0c20afd855e4c2.tar.bz2
Vencord-337b3709d6c9640991a210194b0c20afd855e4c2.zip
types: Make ErrorBoundary.wrap explicitly return Function
Diffstat (limited to 'src')
-rw-r--r--src/components/ErrorBoundary.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/ErrorBoundary.tsx b/src/components/ErrorBoundary.tsx
index 62b92a0..c34b47d 100644
--- a/src/components/ErrorBoundary.tsx
+++ b/src/components/ErrorBoundary.tsx
@@ -105,7 +105,7 @@ const ErrorBoundary = LazyComponent(() => {
};
}) as
React.ComponentType<React.PropsWithChildren<Props>> & {
- wrap<T extends object = any>(Component: React.ComponentType<T>, errorBoundaryProps?: Omit<Props<T>, "wrappedProps">): React.ComponentType<T>;
+ wrap<T extends object = any>(Component: React.ComponentType<T>, errorBoundaryProps?: Omit<Props<T>, "wrappedProps">): React.FunctionComponent<T>;
};
ErrorBoundary.wrap = (Component, errorBoundaryProps) => props => (