Types
WP_EndpointData
Extract the success payload from a generated WordPress endpoint.
WP_EndpointData<Path> resolves the successful data value for an endpoint in the active generated
introspection. Use it to name a WordPress shape without restating its
fields.
Prop
Type
import type { WP_EndpointData } from "kizlo"
export type Post = WP_EndpointData<"postTypes.post.retrieve">
export type PostListItem = WP_EndpointData<"postTypes.post.list">[number]The path uses the same dot-separated keys as context.wordpress. It resolves to never when a generated
client has no matching endpoint, and to any while the pre-generation stub is active.