npm ts-pattern 2.1.2
v2.1.2

latest releases: 5.5.0, 5.4.0, 5.3.1...
3 years ago
  • Improve support for generic types. Some type expressions containing generics did not reduce properly, even with simple catch all patterns. Now they do.
  • Improve compile time performance for exhaustive patterns. Exhaustive patterns used to take a lot of compilation time because DistributeUnions sometimes creates huge type expressions and we were computing the pattern type based on it. Now Pattern always takes the user defined Input type instead of the distributed input.

Don't miss a new ts-pattern release

NewReleases is sending notifications on new releases.