Skip to content

Commit

Permalink
chore: 修改complete的其他参数为可选参数
Browse files Browse the repository at this point in the history
  • Loading branch information
phy-lei authored and ZakaryCode committed May 7, 2024
1 parent 0f4ca62 commit 68b21d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/taro/types/api/network/request.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ declare module '../../index' {
/** 接口调用失败的回调函数 */
fail?: (res: TaroGeneral.CallbackResult) => void
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
complete?: (res: SuccessCallbackResult<T>) => void
complete?: (res: Partial<SuccessCallbackResult> & TaroGeneral.CallbackResult) => void
/** 设置是否使用 jsonp 方式获取数据
* @default false
* @supported h5
Expand Down

0 comments on commit 68b21d1

Please sign in to comment.