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
This example doesn't really showcase the problem, though this issue more extends to generics where I'm attempting to extend the type of a table with callbacks, to use in another function.
The only place where I'd expect this to be confused over the type is if both sides of the intersection define a different type for the same key, for example:
Assume the following code sample:
For whatever reason, the
self
inside themeow
definition has no type, where I would expect it to have the typeCat
.If I modify the code to remove the intersection and instead place it under one type;
...the callback will mysteriously gain it's type.
This example doesn't really showcase the problem, though this issue more extends to generics where I'm attempting to extend the type of a table with callbacks, to use in another function.
The only place where I'd expect this to be confused over the type is if both sides of the intersection define a different type for the same key, for example:
The text was updated successfully, but these errors were encountered: