diff --git a/src/components/ErrorBoundary.ts b/src/components/ErrorBoundary.ts index 09ce307..bd9fdd2 100644 --- a/src/components/ErrorBoundary.ts +++ b/src/components/ErrorBoundary.ts @@ -1,6 +1,6 @@ -import { Component, PropsWithChildren } from "react"; +import { FC, PropsWithChildren } from "react"; import { findModuleExport } from "../webpack"; export const ErrorBoundary = findModuleExport( (e) => e.InstallErrorReportingStore && e?.prototype?.Reset && e?.prototype?.componentDidCatch, -) as Component; \ No newline at end of file +) as FC; // Actually a class but @types/react is broken lol \ No newline at end of file