dynamically insert either single object or array of objects breaking types
So here's 3 renditions of the same fn
Counterintuitively, the first two seem to work fine (not getting yelled at by typechecker), but the third, which I think to be entirely valid TypeScript, gives me a
Any idea on this? Is it something to do with the uncertain shape of the incoming parameter that it can't handle or something
Counterintuitively, the first two seem to work fine (not getting yelled at by typechecker), but the third, which I think to be entirely valid TypeScript, gives me a
No overload matches this call. Overload 1 of 2,...Any idea on this? Is it something to do with the uncertain shape of the incoming parameter that it can't handle or something