(signal: AbortSignal)
| 116 | }; |
| 117 | |
| 118 | const abortError = (signal: AbortSignal): unknown => { |
| 119 | if (signal.reason !== undefined) return signal.reason; |
| 120 | // oxlint-disable-next-line executor/no-error-constructor -- boundary: Fetch-compatible adapter must reject with an AbortError-shaped value |
| 121 | const error = new Error("The operation was aborted"); |
| 122 | error.name = "AbortError"; |
| 123 | return error; |
| 124 | }; |
| 125 | |
| 126 | const fetchFromHttpClientLayer = ( |
| 127 | httpClientLayer: Layer.Layer<HttpClient.HttpClient>, |