Skip to main content

Class: Transport

Constructors

Constructor

new Transport(config): Transport

Parameters

Returns

Transport

Properties

Methods

execute()

execute<R>(fn): Promise<Extract<R, { data: unknown; }>["data"]>

Type Parameters

Parameters

Returns

Promise<Extract<R, { data: unknown; }>["data"]>

executeManual()

executeManual<T>(input, init?): Promise<T>
Run a hand-built request (routes or query params the OpenAPI spec does not describe) through the same Auth -> Retry -> ErrorMapping pipeline the typed client uses, including the timeout-wrapped fetch. Successful bodies are read with readSuccessBody so a non-JSON success body is surfaced rather than silently collapsed to undefined.

Type Parameters

Parameters

Returns

Promise<T>

use()

use(interceptor): void

Parameters

Returns

void