From 3ef96483550020cecf656b94a73d2bb9313bda07 Mon Sep 17 00:00:00 2001 From: AAGaming Date: Thu, 27 Jun 2024 00:16:14 -0400 Subject: [PATCH] fix(errorboundary): work around broken react types for the billionth time --- src/components/ErrorBoundary.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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