miniprogram-automator launch 代码中返回类型错误,和文档不一致?

发布于 5 年前作者 tianchao1013 次浏览最后编辑 5 年前来自 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 回复
xfeng
xfeng1 楼8 个月前

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