Skip to content
This repository has been archived by the owner on Apr 21, 2020. It is now read-only.

Latest commit

 

History

History
46 lines (28 loc) · 2.02 KB

README-en.md

File metadata and controls

46 lines (28 loc) · 2.02 KB

Wechat Mini Program API Typings

中文版本

Published on NPM MIT License Travis CI Test Status

Type definitions for APIs of Wechat Mini Program in TypeScript

Install

Install by NPM:

# install definitions for latest base library
npm install miniprogram-api-typings

or specify a base library version:

# install definitions for base library version 2.4.1
npm install miniprogram-api-typings@2.4.1

Versions

Check out all available versions corresponding to base library version in VERSIONS.md

Changelog

See CHANGELOG.md (Chinese only)

Contribution

Definitions of Wechat APIs (lib.wx.api.d.ts) are auto-generated together with our documentations, therefore PRs including that file will not be merged. If you found some APIs defined wrongly, create an issue instead.

Both PR and issue are welcomed for definitions of pages (Page), custom components (Component) and other else, since they are written manually. Help us improve this definition if you have any bug reports or suggestions! Thanks for contributing!

Automated tests

We use tsd to check if this definition is working properly. All test cases are under folder test.

To perform an automated test, clone this repo, npm install --save-dev and npm test.

If you have test case that fails the test, an issue or PR will be great. Strong test case that passes are also welcomed.