wechat-miniprogram / wechat-miniprogram/api-typings

triggerEvent的detail类型定义和CustomEvent中的detail不一致

Open
#280 0 comments 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

image
image

triggerEvent的detail不应该是对象吗?这里为何放宽到any?在监听事件回调时,使用CustomEvent里面的detail又必须是对象。

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 comparing the TypeScript definitions for triggerEvent's detail and CustomEvent's detail, as illustrated in the issue screenshots. Determine the intended shared type and update the typings so event triggering and event-listener detail types are consistent; done means the definitions agree and the relevant type checks pass.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.