gvergnaud / ts-pattern

🎨 The exhaustive Pattern Matching library for TypeScript, with smart type inference.
MIT License
12.5k stars 135 forks source link

Fixes type `InvertPatternForExcludeInternal` to work with readonly array #284

Closed changwoolab closed 2 months ago

changwoolab commented 2 months ago

This PR resolves the issue https://github.com/gvergnaud/ts-pattern/issues/271

Fixed the issue by modifying InvertPatternForExcludeInternal to consider readonly .