开发者社区> 镜像站> NPM> miniprogram-api-typings
miniprogram-api-typings
Type definitions for APIs of Wechat Mini Program in TypeScript
Last updated 20 days ago by wechat-miniprogram .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install miniprogram-api-typings 
SYNC missed versions from official npm registry.

微信小程序定义文件

English version

已在 DefinitelyTyped 发布 已在 NPM 发布 MIT 协议 Travis CI 测试状况

微信小程序 API 的 TypeScript 类型定义文件

安装

通过 DefinitelyTyped

npm install @types/wechat-miniprogram

或:

通过独立 npm 包

npm install miniprogram-api-typings

安装后手动导入:

  • import 'miniprogram-api-typings';

或者在 ts 配置中指定:

  • tsconfig.json 中指定 types: ["miniprogram-api-typings"]

或者通过 三斜杠指令 引用:

  • /// <reference path="node_modules/miniprogram-api-typings/index.d.ts" />

更新日志

参考 CHANGELOG.md

贡献

API 的定义文件(lib.wx.api.d.ts)是随 文档 一起自动生成的,如果发现了 API 接口的定义错误,请提一个 issue 给我们,关于 API 的 PR 将 不会 被接受。

如果有针对页面(Page)、自定义组件(Component)等接口的 bug 和建议,欢迎 PR 或提一个 issue 给我们。非常感谢!

贡献者

测试

本定义文件使用 tsd 进行测试,所有的测试样例放在 test 目录下。

想执行测试的话,克隆本项目并完成 npm install --save-dev 后执行 npm test 即可。

如果您发现了不能通过自动化测试的测试样例,可以提交 PR 或者提一个 issue。当然,能通过自动化测试的强有力的测试样例也是欢迎的。

Current Tags

  • 2.12.0-beta.4                                ...           beta (4 months ago)
  • 3.2.0                                ...           latest (20 days ago)

55 Versions

  • 3.2.0                                ...           20 days ago
  • 3.1.6                                ...           a month ago
  • 3.1.5                                ...           a month ago
  • 3.1.4                                ...           a month ago
  • 3.1.3                                ...           2 months ago
  • 3.1.2                                ...           2 months ago
  • 3.1.1                                ...           2 months ago
  • 3.1.0                                ...           2 months ago
  • 3.0.2                                ...           3 months ago
  • 3.0.1                                ...           4 months ago
  • 3.0.0                                ...           4 months ago
  • 2.12.0-beta.4                                ...           4 months ago
  • 2.12.0-beta.3                                ...           4 months ago
  • 2.12.0-beta.2                                ...           4 months ago
  • 2.12.0-beta.1                                ...           4 months ago
  • 2.12.1-beta.0                                ...           4 months ago
  • 2.12.1-0                                ...           4 months ago
  • 2.12.0                                ...           4 months ago
  • 2.11.3-beta                                ...           5 months ago
  • 2.11.2-beta                                ...           5 months ago
  • 2.11.0-1                                ...           6 months ago
  • 2.11.0                                ...           6 months ago
  • 2.10.4                                ...           7 months ago
  • 2.10.3-1                                ...           8 months ago
  • 2.10.3                                ...           8 months ago
  • 2.10.2-1                                ...           8 months ago
  • 2.10.2                                ...           9 months ago
  • 2.10.1-1                                ...           10 months ago
  • 2.10.1                                ...           10 months ago
  • 2.10.0-1                                ...           a year ago
  • 2.10.0                                ...           a year ago
  • 2.9.4                                ...           a year ago
  • 2.9.3                                ...           a year ago
  • 2.9.2                                ...           a year ago
  • 2.9.1                                ...           a year ago
  • 2.9.0                                ...           a year ago
  • 2.8.3-1                                ...           a year ago
  • 2.8.3                                ...           a year ago
  • 2.8.2                                ...           a year ago
  • 2.8.1                                ...           a year ago
  • 2.8.0-2                                ...           a year ago
  • 2.8.0-1                                ...           a year ago
  • 2.8.0                                ...           a year ago
  • 2.7.7-2                                ...           a year ago
  • 2.7.7-1                                ...           a year ago
  • 2.7.7                                ...           a year ago
  • 2.6.5-2                                ...           2 years ago
  • 2.6.5-1                                ...           2 years ago
  • 2.6.5                                ...           2 years ago
  • 2.4.2-2                                ...           2 years ago
  • 2.4.2-1                                ...           2 years ago
  • 2.4.2                                ...           2 years ago
  • 2.4.1                                ...           2 years ago
  • 2.4.0-1                                ...           2 years ago
  • 2.4.0                                ...           2 years ago