Re:TypeScript: Control flow analysis for destructured discri...
by bryanrasmussen on Thursday November 04, 2021 @03:51AM
(#29104438)
>as you can see from the issues that are fixed by this PR,
should there be a link to a PR in there somewhere?
Re:TypeScript: Control flow analysis for destructured discri...
by nextaccountic on Thursday November 04, 2021 @04:02AM
(#29104501)
The PR is the article submitted in this thread, https://github.com/microsoft/TypeScript/pull/46266
Re:TypeScript: Control flow analysis for destructured discri...
by bryanrasmussen on Thursday November 04, 2021 @04:28AM
(#29104640)
ah ok, thanks. The phrase 'this PR' confused me.
This comes from trying to fix 1) compiler errors in conditions where the code is safe but the compiler can't understand that and 2) destructuring products/co-products.
Even if both features work on their own and help in certain cases, combining them leads to undesired results.