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
Do you have a real use case? It looks like the problem is only when you try to assign two object that has the same property with different type i.e. {a: number} and {a: string}
Yes, it happens when you want to merge two objects that has different types for same fields.
The use case I had was for replacing breakpoint field
{breakpoint : string, ...rest}
to
{breakpoint: {range: {min:number, max:number}, mediaQuery} ...rest
I no longer intend to write this code, but I think it's a valid case though not common
There are some examples online for a better typing though it's not complete as well
The text was updated successfully, but these errors were encountered: