DefinitelyTyped / DefinitelyTyped/DefinitelyTyped
@types/wechat-miniprogram lost type
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 51.4k
- Forks
- 30.4k
- Avg merge
- 3d 21h
- Merged PRs (30d)
- 108
Description
interface MediaFile {
/** 视频的时间长度 */
duration: number
/** 视频的高度 */
height: number
/** 本地临时文件大小,单位 B */
size: number
/** 本地临时文件路径 (本地路径) */
tempFilePath: string
/** 视频缩略图临时文件路径 */
thumbTempFilePath: string
/** 视频的宽度 */
width: number
}
上面类型定义缺少fileType
官方文档是有的
@Megasu @Garfield550 @dtysky @SgLy
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Locate the @types/wechat-miniprogram definition containing the shown MediaFile interface and compare it with the official documentation referenced in the issue. Add the missing fileType field to the type definition, then run the package's existing validation or test commands to confirm the declaration remains 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
- 48/100