wechat-miniprogram / wechat-miniprogram/api-typings

wx.request onChunkReceived 参数 定义错误

Open
#301 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
803
Forks
117
Avg merge
24m
Merged PRs (30d)
1

Description

onChunkReceived回调函数的参数是 type res = { data: ArrayBuffer }

type文件给定义成type res = { res: { data: Arraybuffer }}

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the TypeScript definition for wx.request and its onChunkReceived callback. Compare the declared parameter shape with the issue's documented shape, then verify that the callback type exposes data directly on res and run the repository's available type checks. Done means the declaration matches the reported API signature.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
api
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.