Erik Brinkman 4d4ea66a9c
update contextual discrimination to include omitted members (#43633)
This diff extends the types checked by
discriminateContextualTypeByObjectMembers and
discriminateContextualTypeByJSXAttributes to also include any optional
components in the type union.

fixes #41759 although it doesn't address the better error reporting for
their last repro, which I'm not sure how to address.
2021-04-24 14:26:29 -07:00
..
2020-06-17 03:28:55 -04:00
2020-06-17 03:28:55 -04:00
2021-03-11 07:32:49 -08:00
2021-03-09 11:43:19 -08:00