Type alias ConvertEndpoint<Root, Key>

ConvertEndpoint<Root, Key>: Key extends keyof Root
    ? Root[Key] extends EndpointDefBase
        ? Key extends HTTPBodyMethods
            ? ConfigCaller<Root[Key]>
            : ConfiglessCaller<Root[Key]>
        : never
    : never

Utility type that provides the appropriate API caller shaped based on an PAPIBuilder and possible EndpointDefBuilder definitions

Type Parameters