api-typings
api-typings copied to clipboard
No onAppRoute Api
The WechatMiniprogram.Wx don't includes key 'onAppRoute',but when I use wx,it surely has it and can be used.
I extend the WechatMiniprogram.WX like this:
wx.onAppRoute
will not be listed in docs or typings since it is not a public API. Non-public API may be changed or removed at any time without prior notice, use it on your own risk. For typings, extend it like the way you shown might be a good choice.