typed-jweixin
TypeScript declaration file for Wexin JSSDK
About
- Based on Weixin JSSDK and it's documentation
- Written using VS Code
Install
-
With
npm
installed$ npm install typed-jweixin --save-dev -
With
typings
installed$ typings install github:Emeryao/typed-jweixin -SG -
Or find the declaration file and include it to your project
-
Then start coding with the power of IntelliSense of VS Code
Sample Code
-
Config
;configData.appId = 'appid';configData.nonceStr = 'nonceStr';configData.signature = 'signature';configData.timestamp = 1234567;wx.configconfigData; -
Share Timeline
;shareData.imgUrl = 'imgUrl';shareData.link = 'link';shareData.title = 'title';shareData.success =;shareData.cancel =wx.onMenuShareTimelineshareData; -
for
Angular
projects created withng new
have a./src/tsconfig.app.json
with default contentthe line of
"types":[]
should be removed to make the declaration file work
Contributors
Thanks for your contributions
Last Update
2018.08.30