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
Expected behavior:
TS would complain about 'two' above. Commenting out poison does show the error. My goal was to type my array to catch bad values getting into it, yet a single anyed value disables me doing any kind of validation
TypeScript Version:
3.5.2
Search Terms:
array any untyped
Code
Expected behavior:
TS would complain about 'two' above. Commenting out
poison
does show the error. My goal was to type my array to catch bad values getting into it, yet a singleany
ed value disables me doing any kind of validationActual behavior:
TS ignores 'two'
Playground Link:
https://www.typescriptlang.org/play/index.html#code/MYewdgzgLgBADiAlhcAuGBDMBPGBeGAZgChRJYMAnS9AQWo2wB4wBXAWwCMBTSgPnwwA2sRhiYARgA0o8QHIoAdxByZ4+EhRhiAXSA
Related Issues:
Couldn't find it
The text was updated successfully, but these errors were encountered: