typings / registry

The registry of type definitions for TypeScript
238 stars 176 forks source link

Create jweixin.json #891

Closed emeryao closed 8 years ago

emeryao commented 8 years ago

Typings URL: https://github.com/Emeryao/typed-jweixin

Questions (for new typings):

PS: WeChat (Chinese name Weixin) is a mobile social app mainly used in Mainland China, so the documentation is in Chinese.

unional commented 8 years ago

I'm suspecting this and the we-app should be under env instead of global.

How to you get access to the library when you write code? Through script tag?

emeryao commented 8 years ago

@unional For this one, yes, the jweixin library should be referenced in a script tag. But for we-app it is accessible globally just like the chrome variable when developing a chrome extension

unional commented 8 years ago

In that case this should remain in global and we-app should be in env

emeryao commented 8 years ago

@unional Thanks for your correction. 👍 I'll fix that and make another PR 😆