api-typings icon indicating copy to clipboard operation
api-typings copied to clipboard

支付宝小程序的 TypeScript 类型定义文件

Results 9 api-typings issues
Sort by recently updated
recently updated
newest added

连个自定义事件的样例都没有。门都入不了啊

## Changes - fix(ShowLoading): 添加是否显示透明蒙层选项 - fix(chooseimage): 添加是否使用前置摄像头选项 ## Docs - [my.showLoading](https://opendocs.alipay.com/mini/api/bm69kb?pathHash=4e0b185c#%E5%85%A5%E5%8F%82) - [my.chooseimage](https://opendocs.alipay.com/mini/api/media/image/my.chooseimage?pathHash=3770863e#%E5%85%A5%E5%8F%82)

产物文件搜索 `tempFiles: IMyChooseImageTempFiles;` 发现结果是普通 record 类型,官网 https://opendocs.alipay.com/mini/api/media/image/my.chooseimage 提示 tempFiles 为数组对象。 我认为应当修改 IMyChooseImageTempFiles 为 Array

getCenterLocation实际不包含'actionType','data','element' changeMarkers add delete update 不是必须的

https://github.com/ant-mini-program/api-typings/blob/6bb373011f91f3d5b1ab22a4398267c186638702/packages/my/types/lib.my.d.ts#L8451C37-L8451C37 ```diff - data?: string | Record | ArrayBuffer; + data?: string | Record | ArrayBuffer; ```

代码:`const pages = getCurrentPages({ getAllPages: true });` 报错:Expected 0 arguments, but got 1.ts(2554) API文档:https://opendocs.alipay.com/mini/framework/getcurrentpages 期望是不报错,应能正确提示参数类型。

例如使用了 `Input` 组件,在 `onInput` 事件中需要对 `e` 关联类型。

enhancement

我目前在项目中还在延用 mini-types 作为类型提示,考虑到用的比较多,我想部分迁移到 `@mini-types/alipay` 来。我发现 @mini-types/alipay 的 namespace 没有 export ,现在点击 `my` 类型会有两个文件,我该如何同时混用两个包呢。 如果你这边给 namespace 做 export 导出,我是否可以重命名角 my2 或者 newMy 做过度使用呢?还请帮助我理清 类型的困惑