You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There's an error in fun1. We can't do item[name] = value otherwise we have the error Type 'string | number' is not assignable to type 'never'. Type 'string' is not assignable to type 'never'.
But the fun2 works perfectly.
π Expected behaviour
We should have the same behaviour in fun1 and fun2.