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
Search Terms:
interdependent props, Union changed for an Intersection, Discriminated Union
Code
// A *self-contained* demonstration of the problem follows...// Test this by running `tsc` on the command-line, rather than through another build tool such as Gulp, Webpack, etc.
Expected behavior:
Since I use Discriminated Union I would like to have a Union within the callback as well.
Actual behavior:
Within the callback, I have an intersection instead of Union. But that work well with basic param (Exemple selected in the Playgound)
TypeScript Version: 4.1.2
Search Terms:
interdependent props,
Union
changed for anIntersection
, Discriminated UnionCode
Expected behavior:
Since I use
Discriminated Union
I would like to have a Union within the callback as well.Actual behavior:
Within the callback, I have an intersection instead of Union. But that work well with basic param (Exemple
selected
in the Playgound)Playground Link:
Playground
Related Issues:
#40647, #12184
Seems like it's issue that has brought a bunch of times, but I'm wondering why we still need to do the
Only for the callback function
The text was updated successfully, but these errors were encountered: