Skip to content

Commit

Permalink
fix(types): 修复钩子缺少的入参 fix #12983
Browse files Browse the repository at this point in the history
  • Loading branch information
ZakaryCode authored and Chen-jj committed Dec 22, 2022
1 parent 14eb0c7 commit 1eb00f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/taro/types/taro.hooks.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ declare module './index' {
* 页面展示时的回调。
* @supported global
*/
useDidShow(callback: () => void): void
useDidShow(callback: (options?: getLaunchOptionsSync.LaunchOptions) => void): void

/**
* 页面隐藏时的回调。
Expand Down Expand Up @@ -100,7 +100,7 @@ declare module './index' {
* 页面加载完成时的回调。
* @supported weapp, h5
*/
useLoad(callback: () => void): void
useLoad<T extends {} = Record<string, any>>(callback: (param: T) => void): void

/**
* 页面卸载时的回调。
Expand Down

0 comments on commit 1eb00f1

Please sign in to comment.