ErrorBoundaryLooseProps
ErrorBoundaryProps with untyped members, for code that forwards a fallback or children it does not know the shape of.
ErrorBoundaryProps with untyped members, for code that forwards a fallback or children it does not know the shape of.
Import#
ts
import type { ErrorBoundaryLooseProps } from "@shadow-js/web";
Signature#
ts
interface ErrorBoundaryLooseProps {
/** Shown after an error; the same contract as {@link ErrorBoundaryProps.fallback}. */
readonly fallback: unknown;
/**
* The protected content; the same contract as {@link ErrorBoundaryProps.children}.
* @default undefined (nothing is protected; the boundary renders nothing)
*/
readonly children?: unknown;
}
Members#
| Name | Type | Description |
|---|---|---|
fallback |
readonly fallback: unknown |
Shown after an error; the same contract as ErrorBoundaryProps.fallback. |
children? |
readonly children?: unknown |
The protected content; the same contract as ErrorBoundaryProps.children. |