lex-xin 2541c14ee4 添加页面 | před 1 měsícem | |
---|---|---|
.. | ||
types | před 1 měsícem | |
CHANGELOG.md | před 1 měsícem | |
LICENSE | před 1 měsícem | |
README-en.md | před 1 měsícem | |
README.md | před 1 měsícem | |
VERSIONS.md | před 1 měsícem | |
index.d.ts | před 1 měsícem | |
package.json | před 1 měsícem | |
typings.json | před 1 měsícem |
Type definitions for APIs of Wechat Mini Program in TypeScript
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
Check out all available versions corresponding to base library version in VERSIONS.md
See CHANGELOG.md (Chinese only)
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!
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.