Skip to main content

Type Alias: Transport()

Transport: (request: TransportRequest) => Promise<TransportResponse>

Replaces the internal fetch call. Headers (Authorization, Content-Type, Accept) are pre-populated. Must return a Promise resolving with the raw response status and bodyText. Throw on network-level failures. The SDK owns JSON parsing and error normalisation.

Parameters

ParameterType
requestTransportRequest

Returns

Promise<TransportResponse>