mirror of
https://github.com/SteamDeckHomebrew/decky-frontend-lib.git
synced 2026-05-18 17:10:09 +02:00
fix(errorboundary): work around broken react types
for the billionth time
This commit is contained in:
@@ -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<PropsWithChildren>;
|
||||
) as FC<PropsWithChildren>; // Actually a class but @types/react is broken lol
|
||||
Reference in New Issue
Block a user