Samuel
@samuel.fm
typescripters get hyped - this PR enabling type predicates to be inferred from the function body got merged 🥳
github.com/microsoft/Ty...
Infer type predicates from function bodies using control flow analysis by danvk · Pull Request #57465 · microsoft/TypeScript
Fixes #16069
Fixes #38390
Fixes #10734
Fixes #50734
Fixes #12798
This PR uses the TypeScript's existing control flow analysis to infer type predicates for boolean-returning functions where appropri...
github.com