Skip to content

Commit

Permalink
fix: add apiCategory in wx.app.d.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
dhlolo committed May 5, 2023
1 parent 739a95c commit c1f57e7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions types/wx/lib.wx.app.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,13 @@ declare namespace WechatMiniprogram.App {
shareTicket: string
/** 当场景为由从另一个小程序或公众号或App打开时,返回此字段 */
referrerInfo?: ReferrerInfo
/** API 类别; 2.20.0及其以上版本支持
* - default:默认类别
* - nativeFunctionalized: 原生功能化,视频号直播商品、商品橱窗等场景打开的小程序
* - 仅浏览,朋友圈快照页等场景打开的小程序
* - 内嵌,通过打开半屏小程序能力打开的小程序
*/
apiCategory?: 'default' | 'nativeFunctionalized' | 'browseOnly' | 'embedded';
}

interface PageNotFoundOption {
Expand Down

0 comments on commit c1f57e7

Please sign in to comment.