Skip to content

Commit

Permalink
Merge develop into main
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaweiss committed Jan 10, 2024
2 parents af1ad03 + 3fa67c3 commit 95145ae
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## <small>1.0.5 (2024-01-10)</small>

* feat: 增加组件自定义生命周期 - 登录后 ([c0e98ae](https://github.com/xiaweiss/miniprogram-type/commit/c0e98ae))

## <small>1.0.4 (2023-08-14)</small>

* fix: #4 this.renderer 缺乏类型定义 ([7922d82](https://github.com/xiaweiss/miniprogram-type/commit/7922d82)), closes [#4](https://github.com/xiaweiss/miniprogram-type/issues/4)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "miniprogram-type",
"version": "1.0.4",
"version": "1.0.5",
"author": "xiaweiss",
"description": "Type definitions for Wechat Mini Program in TypeScript",
"homepage": "https://github.com/xiaweiss/miniprogram-type",
Expand Down
9 changes: 9 additions & 0 deletions types/wx/lib.wx.component.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,15 @@ declare namespace WechatMiniprogram.Component {
* 所在页面尺寸变化时执行
*/
resize(size: Page.IResizeOption): void

/**
* 自定义生命周期 - 登录后
* Record<string, string | undefined>
*/
login (
/** 打开当前页面路径中的参数 */
options: Record<string, string | undefined>
): void
}

type DefinitionFilter = <T extends TrivialOption>(
Expand Down

0 comments on commit 95145ae

Please sign in to comment.