We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc17017 commit ed1b149Copy full SHA for ed1b149
README.md
@@ -62,6 +62,9 @@ if (res) {
62
可以看到,由于块级作用域的特性,导致 res 的类型被”污染“了, 使用 try-flatten 后,你将可以用一种“扁平化”的方式调用 try-catch, 不用为了类型安全写一些冗余代码。
63
64
## 用上 `try-flatten` 后
65
+
66
+[typeScript playground](https://l.ydr.me/jK6C64rW)
67
68
```ts
69
import { tryFlatten } from 'try-flatten';
70
0 commit comments