(input: unknown)
| 1079 | } |
| 1080 | |
| 1081 | const isJsonError = (input: unknown): input is JsonError => |
| 1082 | Predicate.isObject(input) && typeof input["message"] === "string" |
| 1083 | |
| 1084 | const decodeJsonError = (input: JsonError): Error => { |
| 1085 | const hasCause = Object.hasOwn(input, "cause") |