(error: unknown)
| 107 | } |
| 108 | |
| 109 | export function encapsulateBoundaryError(error: unknown): Error { |
| 110 | if (isErrorLike(error)) { |
| 111 | return error; |
| 112 | } |
| 113 | return new ErrorBoundaryWrappedError(error); |
| 114 | } |
| 115 | |
| 116 | export function isErrorLike(error: unknown): error is Error { |
| 117 | return ( |
no test coverage detected