api-typings icon indicating copy to clipboard operation
api-typings copied to clipboard

No onAppRoute Api

Open CreazyJack opened this issue 2 years ago • 1 comments

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: image

CreazyJack avatar Apr 13 '22 06:04 CreazyJack

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.

SgLy avatar Jun 24 '22 12:06 SgLy