PostsBlogReposAbout
Samuel15 Mar 2024
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
6 4 34
futur 🔹15 Mar 2024
the .filter(Boolean) case is absolutely killer
3 5
Samuel
@samuel.fm
huge!
4
15 March 2024 at 10:02 pmView on Bluesky