Skip to content

Commit b2549b9

Browse files
author
Simon he
committed
chore: update README
1 parent 112a158 commit b2549b9

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,22 @@
2929
- isSymbol // 判断是否是Symbol
3030
- isNaN // 判断是否是NaN
3131
- isReg // 判断是否是正则表达式
32+
- VFetch // fetch请求封装 export interface IFetch {
33+
url: string
34+
method?: Method
35+
headers?: Record<string, string>
36+
credentials?: Credentials
37+
params?: Record<string, string>
38+
timeout?: number
39+
returnType?: ReturnType
40+
bodyType?: BodyType
41+
cache?: Cache
42+
redirect?: Redirect
43+
mode?: Mode
44+
firstThen?: (response: Response) => Response
45+
}
46+
- interceptError // 自动捕获传入函数执行的异常
47+
3248

3349
## 使用方法
3450
### deepMerge

0 commit comments

Comments
 (0)