PayloadTypetype

X extends Endpoint<infer Y, unknown> ? Y : never
Type
Endpoint
A typed API resource definition pairing a method and path with payload and result schemas.
Y

Extract the payload type from an Endpoint.