From 275b4e6bac4e0358da925569bf7814be5461292a Mon Sep 17 00:00:00 2001 From: Grigoris Christainas Date: Mon, 10 Jun 2024 18:46:12 +0300 Subject: [PATCH] docs: fixed typo in P.when patterns code example --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b199bcbc..f908a901 100644 --- a/README.md +++ b/README.md @@ -1071,7 +1071,7 @@ import { match, P } from 'ts-pattern'; type Input = { score: number }; -const output = match({ score: 10 }) +const output = match({ score: 10 }) .with( { score: P.when((score): score is 5 => score === 5),