Inside the `if (r.data)` branch, what is the type of `r.status`?
type Resp =
| { status: "success"; data: string; error?: undefined }
| { status: "error"; error: string; data?: undefined };
function f(r: Resp) {
if (r.data) {
return r.status;
}
return r.status;
}