EndpointTransport
EndpointTransport = <
T,Parse>(options) =>Promise<Parseextendsfalse?Response:T>
Defined in: wp-typia-api-client/src/client.ts:72
Transport contract used to execute validated endpoint requests.
Type Parameters
Section titled “Type Parameters”T = unknown
Parse extends boolean = true
Parameters
Section titled “Parameters”options
Section titled “options”EndpointTransportRequest & object
Returns
Section titled “Returns”Promise<Parse extends false ? Response : T>
Remarks
Section titled “Remarks”Implementations can wrap fetch, WordPress-aware clients, or any custom
request pipeline so long as they honor the parse toggle.