Skip to content

Commit

Permalink
fix(types): 事件回调类型 fix #10954
Browse files Browse the repository at this point in the history
  • Loading branch information
ZakaryCode committed Jan 6, 2022
1 parent 7b03b10 commit fdf2ad0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/taro/types/api/base/weapp/app-event.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ declare module '../../../index' {
*/
onAppHide(
/** 小程序切后台事件的回调函数 */
callback: (res: TaroGeneral.CallbackResult) => void,
callback: (res: onAppShow.CallbackResult) => void,
): void

/** 取消监听小程序要打开的页面不存在事件
Expand All @@ -139,7 +139,7 @@ declare module '../../../index' {
*/
offPageNotFound(
/** 小程序要打开的页面不存在事件的回调函数 */
callback: (res: TaroGeneral.CallbackResult) => void,
callback: (res: onPageNotFound.Callback) => void,
): void

/** 取消监听音频播放错误事件
Expand All @@ -149,7 +149,7 @@ declare module '../../../index' {

offError(
/** 音频播放错误事件的回调函数 */
callback: (res: TaroGeneral.CallbackResult) => void,
callback: (res: onError.Callback) => void,
): void

/** 取消监听音频中断结束事件
Expand Down

0 comments on commit fdf2ad0

Please sign in to comment.