Returning an Array in flatMap seems to produce the wrong TypeScript type
I’m assuming this is user error on my part, but when I write the code below, I’m expecting the return type to be User[] but TS seems to think it’s User[][] even though I’m calling flatMap(). I’m not sure if my generics are messing something up, but it seems like TS doesn’t grok that the… Read More Returning an Array in flatMap seems to produce the wrong TypeScript type