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
…just works - infers that numbers is number[] with --strictNullChecks on? I think this should be out of the box behavior with TypeScript and lib.d.ts typings. Is this possible?
The text was updated successfully, but these errors were encountered:
I did end to doing that. I raised this issue to see if there is a future where we won't have to spell this out to the compiler. Looks like the mentioned issue is tracking the progress towards that.
I have come across issues such as #7657, #20812 and #20218 as well as SO questions such as this one, but they all deal with type guards.
Could it be made so that the following code:
…just works - infers that
numbers
isnumber[]
with--strictNullChecks
on? I think this should be out of the box behavior with TypeScript andlib.d.ts
typings. Is this possible?The text was updated successfully, but these errors were encountered: