Describe the bug
5.6.1 introduced a regression where isMatching(pattern, value) cannot be used with the vast majority of patterns. On the other end, isMatching(pattern)(value) works fine.
TypeScript playground with a minimal reproduction case
Example: Playground
Versions
- TypeScript version: 5.7.3
- ts-pattern version: 5.6.1
- environment: Edge v130 / Node v22.13.0