Skip to content

EndpointTransport

EndpointTransport = <T, Parse>(options) => Promise<Parse extends false ? Response : T>

Defined in: wp-typia-api-client/src/client.ts:72

Transport contract used to execute validated endpoint requests.

T = unknown

Parse extends boolean = true

EndpointTransportRequest & object

Promise<Parse extends false ? Response : T>

Implementations can wrap fetch, WordPress-aware clients, or any custom request pipeline so long as they honor the parse toggle.