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
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.7.1
Search Terms:
Code
Expected behavior:
Type
ResultName
isstring | undefined
.Actual behavior:
Type
ResultName
isstring
.Playground Link:
https://www.typescriptlang.org/play/#src=%0D%0Ainterface%20User%20%7B%0D%0A%20%20%20%20name%3A%20string%3B%0D%0A%7D%0D%0A%0D%0Aconst%20user%3A%20User%20%3D%20%7B%20name%3A%20'Bob'%20%7D%3B%0D%0Aconst%20partial%3A%20Partial%20%3D%20%7B%20name%3A%20undefined%20%7D%3B%0D%0Aconst%20result%20%3D%20%7B%20...user%2C%20...partial%20%7D%3B%0D%0A%0D%0Atype%20ResultName%20%3D%20(typeof%20result)%5B'name'%5D%3B%0D%0A
Related Issues:
#14799
The text was updated successfully, but these errors were encountered: