mirror of
https://github.com/SteamDeckHomebrew/decky-loader.git
synced 2026-11-25 05:09:15 +00:00
6 lines
353 B
TypeScript
6 lines
353 B
TypeScript
import { FC, PropsWithChildren } from "react";
|
|
import { findModuleExport } from "../module-system";
|
|
|
|
export const ErrorBoundary = findModuleExport(
|
|
(e) => e?.prototype?.Reset && e?.prototype?.componentDidCatch && e.prototype?.render?.toString().includes("lastErrorKey"),
|
|
) as FC<PropsWithChildren>; // Actually a class but @types/react is broken lol
|