(result: AsyncResult.AsyncResult<A, unknown>)
| 112 | } |
| 113 | |
| 114 | function errorMessage<A>(result: AsyncResult.AsyncResult<A, unknown>): string | null { |
| 115 | if (result._tag !== "Failure") return null; |
| 116 | const cause = Cause.squash(result.cause); |
| 117 | return cause instanceof Error ? cause.message : "Workspace query failed."; |
| 118 | } |
| 119 | |
| 120 | export function useProjectEntriesQuery( |
| 121 | environmentId: EnvironmentId, |
no outgoing calls
no test coverage detected