createFetchTransport
createFetchTransport(
options):EndpointTransport
Defined in: wp-typia-api-client/src/client.ts:298
Create a fetch-backed transport for generated endpoint contracts.
Parameters
Section titled “Parameters”options
Section titled “options”FetchTransportOptions
Base URL, default headers, and optional fetch override.
Returns
Section titled “Returns”A transport compatible with callEndpoint() and the header helpers.
Remarks
Section titled “Remarks”Use this when your client should resolve relative endpoint paths from a fixed API base URL and execute them with the standard Fetch API.
Example
Section titled “Example”const transport = createFetchTransport({ baseUrl: "https://example.com/wp-json/",});