createEndpoint
createEndpoint<
Req,Res>(config):ApiEndpoint<Req,Res>
Defined in: wp-typia-rest/src/client.ts:425
Freeze a WordPress REST endpoint definition as a typed public contract.
Type Parameters
Section titled “Type Parameters”Req
Res
Parameters
Section titled “Parameters”config
Section titled “config”ApiEndpoint<Req, Res>
Endpoint metadata and validators to expose.
Returns
Section titled “Returns”ApiEndpoint<Req, Res>
The same config, preserved as an ApiEndpoint.