Why the infered type of this function is `string | undefined`?
Why the infered type of this function is
string | undefined? How TypeScript is unable to see that the returned value can never be undefined?