Repository Details
Shared by
HelloGitHub Rating
0 ratings
支持 finnaly、typescript 的微信小程序异步解决方案
Past 7 days Received 0 stars ✨
Use arrow keys to explore dates, Home and End for the first and last date, Escape to dismiss.| Date | Star | Daily change |
|---|---|---|
| 周一 | 805 | — |
| 周二 | 805 | 0 |
| 周三 | 805 | 0 |
| 周四 | 805 | 0 |
| 周五 | 805 | 0 |
| 周六 | 805 | 0 |
| 周日 | 805 | 0 |
805
Stars
Yes
Chinese
JavaScript
Language
No
Active
11
Contributors
0
Issues
No
Organization
None
Latest
125
Forks
MIT
License
支持 finnaly、typescript 的微信小程序异步解决方案。特性:
- 方便集成:一处引用,处处使用
- 把微信小程序所有异步 API promise 化并挂在到 wx.pro 对象下
- 支持 ES2018 finally 特性
- 支持 TypeScript 开发
```javascript
import { promisifyAll, promisify } from 'wx-promise-pro'
// promisify all wx‘s api
promisifyAll()
// promisify single api
promisify(wx.getSystemInfo)().then(console.log)
```
Included in:
Vol.47
Comments
Rating:
No comments yet