Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OnProgressUpdateCallbackResult 类型定义错误,totalBytesExpectedToSent,类型声明为 totalBytesExpectedToSend #11749

Closed
tilkofjin opened this issue Apr 30, 2022 · 1 comment · Fixed by #11863
Assignees
Labels
A-typings Area - TypeScript Typings 相关 F-react Framework - React T-h5 Target - 编译到 H5 V-3 Version - 3.x
Projects

Comments

@tilkofjin
Copy link

tilkofjin commented Apr 30, 2022

相关平台

H5

浏览器版本: Chrome 版本 100.0.4896.127
使用框架: React

复现步骤

3.4.7版本的 OnProgressUpdateCallbackResult 类型声明错误 totalBytesExpectedToSent 类型声明为 totalBytesExpectedToSend

interface OnProgressUpdateCallbackResult {
     /** 上传进度百分比 */
     progress: number
     /** 预期需要上传的数据总长度,单位 Bytes */
     totalBytesExpectedToSend: number
     /** 已经上传的数据长度,单位 Bytes */
     totalBytesSent: number
   }

期望结果

类型定义正确

实际结果

类型定义错误

环境信息

 Taro CLI 3.4.7 environment info:
    System:
      OS: Windows 10
    Binaries:
      Node: 16.13.1 - C:\Program Files\nodejs\node.EXE
      Yarn: 1.22.11 - C:\Users\S\AppData\Roaming\npm\yarn.CMD
      npm: 8.5.0 - C:\Program Files\nodejs\npm.CMD
@taro-bot2 taro-bot2 bot added F-react Framework - React T-h5 Target - 编译到 H5 V-3 Version - 3.x labels Apr 30, 2022
@ZakaryCode
Copy link
Contributor

3.4.7版本的 OnProgressUpdateCallbackResult 类型声明错误 totalBytesExpectedToSent 类型声明为 totalBytesExpectedToSend

该申明参考 微信官方文档

image

@ZakaryCode ZakaryCode added the A-typings Area - TypeScript Typings 相关 label May 5, 2022
@ZakaryCode ZakaryCode added this to Padding in H5 May 30, 2022
ZakaryCode added a commit that referenced this issue May 30, 2022
H5 automation moved this from Padding to Done May 31, 2022
Chen-jj pushed a commit that referenced this issue May 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-typings Area - TypeScript Typings 相关 F-react Framework - React T-h5 Target - 编译到 H5 V-3 Version - 3.x
Projects
Archived in project
H5
  
Done
Development

Successfully merging a pull request may close this issue.

2 participants