Type alias APIResponse<Root, Config>

APIResponse<Root, Config>: "parse" extends keyof Config
    ? "json" extends Config["parse"]
        ? ConvertResponse<Root & Config>
        : Promise<ParsedResponse<Config["parse"]>>
    : ConvertResponse<Root & Config>

Utility type that converts a definition shape in the response type for an API call

Type Parameters