gvergnaud / ts-pattern

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

docs: fix typo in `P.when` patterns code example #260

Closed grigorischristainas closed 5 months ago

grigorischristainas commented 5 months ago

Hey, nice project! As I was reading the README.md file, I came across a typo in the code example for P.when patterns, which causes TypeScript issues. I would be happy to make any further adjustments as needed. Please feel free to close the PR if you think this change is unnecessary.

gvergnaud commented 5 months ago

thank you!