From ed1b149e7c4a6640b34e3319bb842e404c780c1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=23=E4=BA=91=E6=B7=A1=E7=84=B6?= Date: Sat, 2 Dec 2023 19:03:17 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=96=B0=E5=A2=9E=20typeScript=20playgr?= =?UTF-8?q?ound?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 6743360..93e079e 100644 --- a/README.md +++ b/README.md @@ -62,6 +62,9 @@ if (res) { 可以看到,由于块级作用域的特性,导致 res 的类型被”污染“了, 使用 try-flatten 后,你将可以用一种“扁平化”的方式调用 try-catch, 不用为了类型安全写一些冗余代码。 ## 用上 `try-flatten` 后 + +[typeScript playground](https://l.ydr.me/jK6C64rW) + ```ts import { tryFlatten } from 'try-flatten';