gvergnaud / ts-pattern

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

Export Pattern types in package.json #292

Closed GGomez99 closed 1 month ago

GGomez99 commented 1 month ago

Fix issue: https://github.com/gvergnaud/ts-pattern/issues/291

Changes

Export Pattern.d.ts in the package.json to solve the issue. They are now available at ts-pattern/types.

QA

Doing the same changes from this PR in this playground fixes the TS error