(cause: unknown)
| 57 | Effect.tryPromise({ try: fn, catch: (cause) => cause }); |
| 58 | |
| 59 | const isNotFound = (cause: unknown): boolean => |
| 60 | typeof cause === "object" && |
| 61 | cause !== null && |
| 62 | "status" in cause && |
| 63 | (cause as { readonly status: unknown }).status === 404; |
| 64 | |
| 65 | const noneWhenGone = <A>(fn: () => Promise<A>) => |
| 66 | Effect.tryPromise({ try: fn, catch: (cause) => cause }).pipe( |