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
I realize K is superfluous here, but this was an illustrative example. In the real case, I'm using mapped types to narrow multiple values simultaneously. The real function is more like:
Automatically closing this issue for housekeeping purposes. The issue labels indicate that it is unactionable at the moment or has already been addressed.
TypeScript Version: 2.6.2; Playground
Code
Expected behavior:
t
should be narrowed so that the two clauses are accepted by the compilerActual behavior:
t.v
is typed asstring | number
in both branches.This is similar to #17930, but this issue adds the generic
K
to the mix.The text was updated successfully, but these errors were encountered: