infinity-forge
Version:
4 lines (3 loc) • 357 B
TypeScript
import { RefAttributes, ForwardRefExoticComponent, PropsWithoutRef, ComponentType } from "react";
import { ErrorBoundaryProps } from "./types.js";
export declare function withErrorBoundary<Props extends object>(component: ComponentType<Props>, errorBoundaryProps: ErrorBoundaryProps): ForwardRefExoticComponent<PropsWithoutRef<Props> & RefAttributes<any>>;