Skip to content

Commit ed1b149

Browse files
committed
fix: 新增 typeScript playground
1 parent fc17017 commit ed1b149

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@ if (res) {
6262
可以看到,由于块级作用域的特性,导致 res 的类型被”污染“了, 使用 try-flatten 后,你将可以用一种“扁平化”的方式调用 try-catch, 不用为了类型安全写一些冗余代码。
6363

6464
## 用上 `try-flatten`
65+
66+
[typeScript playground](https://l.ydr.me/jK6C64rW)
67+
6568
```ts
6669
import { tryFlatten } from 'try-flatten';
6770

0 commit comments

Comments
 (0)