wechat-miniprogram / wechat-miniprogram/api-typings

【类型缺失】类型缺失

Open
#312 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

interface MediaFile {
    /** 视频的时间长度 */
    duration: number
    /** 视频的高度 */
    height: number
    /** 本地临时文件大小,单位 B */
    size: number
    /** 本地临时文件路径 (本地路径) */
    tempFilePath: string
    /** 视频缩略图临时文件路径 */
    thumbTempFilePath: string
    /** 视频的宽度 */
    width: number
}

上面类型定义缺少fileType
官方文档是有的
image

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

Locate the TypeScript MediaFile interface shown in the issue and compare it with the linked official documentation. Add the missing fileType definition with the documented type, then run the repository's type-definition checks to confirm the interface is valid.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.