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
@RyanCavanaugh After reading this article a while back, I became persuaded of template literals' superiority over normal single/double quoted strings and have been using them exclusively ever since.
TypeScript Version: 2.7.0-dev.20171230
Code
Expected behavior:
Should compile fine.
Actual behavior:
error TS2532: Object is possibly 'undefined'.
typeof envVar === `string`
does not narrow thestring | undefined
union down tostring
.The text was updated successfully, but these errors were encountered: