mirror of
https://github.com/SteamDeckHomebrew/decky-frontend-lib.git
synced 2026-05-20 10:00:08 +02:00
6 lines
319 B
TypeScript
6 lines
319 B
TypeScript
import { FC, PropsWithChildren } from "react";
|
|
import { findModuleExport } from "../webpack";
|
|
|
|
export const ErrorBoundary = findModuleExport(
|
|
(e) => e.InstallErrorReportingStore && e?.prototype?.Reset && e?.prototype?.componentDidCatch,
|
|
) as FC<PropsWithChildren>; // Actually a class but @types/react is broken lol
|