(props: ErrorComponentProps)
| 16 | import type { ErrorComponentProps } from '../src' |
| 17 | |
| 18 | function MyErrorComponent(props: ErrorComponentProps) { |
| 19 | return <div>Error: {getErrorMessage(props.error)}</div> |
| 20 | } |
| 21 | |
| 22 | function getErrorMessage(error: unknown) { |
| 23 | return error instanceof Error ? error.message : String(error) |
nothing calls this directly
no test coverage detected