Wesley Wigham
16450a027a
Change the default type parameter constraints and defaults to unknown from {} ( #30637 )
...
* Change the default type parameter constraint and default to unknown from {}
* Relax unknown checking outside of strictNullChecks a bit
* Increase strictness on index signatures with type `unknown` so inference doesnt change surprisingly
* Remove redundant switch
2019-04-04 12:25:15 -07:00
Jack Williams
3d0c7f3156
Narrow unknown in switch
2019-02-03 16:07:21 +00:00
Jack Williams
36cc154985
Narrow to any primitive or object and update tests
2019-01-25 09:41:34 +00:00
Jack Williams
1f2338bd78
Update test file and baselines
2019-01-25 09:41:34 +00:00
Jack Williams
267e5989cd
Add narrowing for unknown with strict equal
2019-01-25 09:41:34 +00:00
Anders Hejlsberg
7a0779288f
Add tests
2018-12-10 09:14:41 -08:00
Anders Hejlsberg
577662de42
Update tests
2018-05-29 17:55:57 -07:00
Anders Hejlsberg
c694ffe7a5
Update tests
2018-05-29 12:54:12 -07:00
Anders Hejlsberg
31c73defa7
Update tests
2018-05-27 15:44:01 -07:00
Anders Hejlsberg
73af0adcf0
Add tests
2018-05-27 10:37:59 -07:00