query data type is (Type | undefined) after `isError` check
I expect
data to be type of VisitResponse after isError check, but it is VisitResponse | undefinedIf I do the following I get the type of
VisitResponse for dataIs there way to change this behaviour so that checking only
isError would suffice?