EndpointTypetype

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

Extract the result type from an Endpoint.