Skip to main content
Per-request fetch-level options that are orthogonal to the API request payload. These are passed through to the underlying fetch() call via openapi-fetch’s init spread. Intentionally kept separate from *Request types so API-domain interfaces stay serializable and free of DOM/transport concerns.

Properties

signal?

optional signal?: AbortSignal
An AbortSignal to cancel the in-flight HTTP request. When the signal fires, the underlying fetch() rejects with an AbortError wrapped in a NetworkError.

Example

const controller = new AbortController();
setTimeout(() => controller.abort(), 5000);
const result = await client.events.search(request, { signal: controller.signal });