miniprogram-api-typings
Advanced tools
Comparing version 3.11.1 to 3.12.0
@@ -0,1 +1,5 @@ | ||
## 2023-08-24 v3.12.0 | ||
- `App` 生命周期 `onLaunch`, `onShow` 参数中的 `referrerInfo` 字段类型对齐 API 定义中的 `ReferrerInfo`。这是一个 **破坏性改动**,其中 `extraData` 的类型从 `any` 收窄到了 `Record<string, any>` | ||
- 根据实际实现,修改了 `LaunchOptions` 中 `query` 字段的类型。这是一个 **破坏性改动**,该类型从 `Record<string, any>` 收窄到了 `Record<string, string>` | ||
## 2023-08-24 v3.11.1 | ||
@@ -2,0 +6,0 @@ - 更新 API 定义到 3.0.1 |
{ | ||
"name": "miniprogram-api-typings", | ||
"version": "3.11.1", | ||
"version": "3.12.0", | ||
"description": "Type definitions for APIs of Wechat Mini Program in TypeScript", | ||
@@ -5,0 +5,0 @@ "main": "./index.d.ts", |
@@ -24,18 +24,2 @@ /*! ***************************************************************************** | ||
declare namespace WechatMiniprogram.App { | ||
interface ReferrerInfo { | ||
/** 来源小程序或公众号或App的 appId | ||
* | ||
* 以下场景支持返回 referrerInfo.appId: | ||
* - 1020(公众号 profile 页相关小程序列表): appId | ||
* - 1035(公众号自定义菜单):来源公众号 appId | ||
* - 1036(App 分享消息卡片):来源应用 appId | ||
* - 1037(小程序打开小程序):来源小程序 appId | ||
* - 1038(从另一个小程序返回):来源小程序 appId | ||
* - 1043(公众号模板消息):来源公众号 appId | ||
*/ | ||
appId: string | ||
/** 来源小程序传过来的数据,scene=1037或1038时支持 */ | ||
extraData?: any | ||
} | ||
type SceneValues = | ||
@@ -42,0 +26,0 @@ | 1000 |
@@ -651,7 +651,7 @@ /*! ***************************************************************************** | ||
interface UpdatePerformance<WithDataPath> { | ||
/** 此次更新过程的 ID */ | ||
/** 此次更新过程的 ID */ | ||
updateProcessId: number | ||
/** 对于子更新,返回它所属的更新过程 ID */ | ||
parentUpdateProcessId?: number | ||
/** 是否是被合并更新,如果是,则 updateProcessId 表示被合并到的更新过程 ID */ | ||
/** 是否是被合并更新,如果是,则 updateProcessId 表示被合并到的更新过程 ID */ | ||
isMergedUpdate: boolean | ||
@@ -658,0 +658,0 @@ /** 此次更新的 data 字段信息,只有 withDataPaths 设为 true 时才会返回 */ |
Sorry, the diff of this file is too big to display
2170469
53399