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