Skip to content

Commit af1ad03

Browse files
committed
Merge develop into main
2 parents 36957d2 + 9a94d36 commit af1ad03

File tree

4 files changed

+9
-1
lines changed

4 files changed

+9
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## <small>1.0.4 (2023-08-14)</small>
2+
3+
* fix: #4 this.renderer 缺乏类型定义 ([7922d82](https://github.com/xiaweiss/miniprogram-type/commit/7922d82)), closes [#4](https://github.com/xiaweiss/miniprogram-type/issues/4)
4+
15
## <small>1.0.3 (2023-08-14)</small>
26

37
* update: miniprogram-api-typings 3.11.0 ([9f484fc](https://github.com/xiaweiss/miniprogram-type/commit/9f484fc))

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "miniprogram-type",
3-
"version": "1.0.3",
3+
"version": "1.0.4",
44
"author": "xiaweiss",
55
"description": "Type definitions for Wechat Mini Program in TypeScript",
66
"homepage": "https://github.com/xiaweiss/miniprogram-type",

types/wx/lib.wx.component.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,8 @@ declare namespace WechatMiniprogram.Component {
164164
id: string
165165
/** 节点dataset */
166166
dataset: Record<string, string>
167+
/** 渲染引擎 */
168+
renderer: 'webview' | 'skyline'
167169
}
168170

169171
interface InstanceMethods<D extends DataOption> {

types/wx/lib.wx.page.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,8 @@ declare namespace WechatMiniprogram.Page {
153153

154154
/** 打开当前页面路径中的参数 */
155155
options: Record<string, string | undefined>
156+
/** 渲染引擎 */
157+
renderer: 'webview' | 'skyline'
156158
}
157159

158160
type DataOption = Record<string, any>

0 commit comments

Comments
 (0)