miniprogram-automator launch 代码中返回类型错误,和文档不一致?
发布于 4 年前 作者 tianchao 662 次浏览 来自 官方Issues

miniprogram-automator 版本号为 npm 安装的 0.10.0,其中 Automator.launch 的 d.ts 文件描述为:

export default class Automator {
    ...
    launch(options: ILaunchOptions): Promise<null>;
}

而在文档 https://developers.weixin.qq.com/miniprogram/dev/devtools/auto/automator.html 中描述为

automator.launch(options: Object): Promise<MiniProgram>

实际情况是文档描述的应该是正确的返回类型,而不是 null

1 回复

感谢反馈,后续版本修复。

回到顶部