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

Type definitions for APIs of Wechat Mini Program in TypeScript

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

```ts interface StatSuccessCallbackResult { /** [Stats](https://developers.weixin.qq.com/miniprogram/dev/api/file/Stats.html)|Array.<[Stats](https://developers.weixin.qq.com/miniprogram/dev/api/file/Stats.html)> * * 当 recursive 为 false 时,res.stats 是一个 Stats 对象。当 recursive 为 true 且 path 是一个目录的路径时,res.stats 是一个 Array,数组的每一项是一个对象,每个对象包含 path 和 stats。 */ stats: Stats...

根据微信小程序文档[授权](https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/authorize.html), 新增了如"scope.bluetooth"等权限,但目前类型库没有更新,请及时更新

希望能够为所有返回 any 的api添加泛型,如: ```ts getStorageSync( /** 本地缓存中指定的 key */ key: string ): any ``` 改为 ```ts getStorageSync( /** 本地缓存中指定的 key */ key: string ): T ``` 再如: ```ts interface RequestOption...

lib.wx.component.d.ts 中 ```typescript type PropertyToData = T extends ShortProperty ? ValueType : FullPropertyToData type FullPropertyToData = ValueType ``` 当 FullProperty 中 type 为 Object 时,ValueType 总是为 IAnyObject 的,并无法得到推断后具体的类型。 考虑一个例子: ```js...

``` /** 菜单按钮的布局位置信息 */ interface Rect {} ```

例如 ``` Component({ properties: { coupon: CouponBO }, ``` 我想通过`this.properties.coupon`获得类型提示,应该怎么写呢?

类型“SystemInfo”上不存在属性“environment”。ts(2339)

Ts 4.4 introduce a new flag `--exactOptionalPropertyTypes`, and it's already on stable channel. See https://devblogs.microsoft.com/typescript/announcing-typescript-4-4/#exact-optional-property-types With this option, ```ts interface Person { name: string, age?: number | undefined; } ```...

### Problem 问题 从3.3.2升级至3.4.2时,代码中statSync部分报错,如: When we upgrade from 3.3.2 to 3.4.2, code related to statSync throws error while build, ```typescript const fs = wx.getFileSystemManager(); const stat = fs.statSync('filePath'); return stat.isFile();...

### 环境 - api-typings: 3.4.1 - mac-os: 11.4 - vs-code: 1.58.2 - wechat-dev-tool: 1.05.2107090 ### 问题 以上环境版本的微信开发工具,console输出中,console.group 是支持多个参数的(主要是支持 css style console) 但目前 api-typings 的定义中只有一个 label?: string,导致使用多个参数时会有ts异常提示 ```typescript group( /** 分组标记,可选。...