From 1eb00f18373bcdc8de46819f7d4dd0c5ea7bc5a8 Mon Sep 17 00:00:00 2001 From: Zakary Date: Mon, 19 Dec 2022 19:20:22 +0800 Subject: [PATCH] =?UTF-8?q?fix(types):=20=E4=BF=AE=E5=A4=8D=E9=92=A9?= =?UTF-8?q?=E5=AD=90=E7=BC=BA=E5=B0=91=E7=9A=84=E5=85=A5=E5=8F=82=20fix=20?= =?UTF-8?q?#12983?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/taro/types/taro.hooks.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/taro/types/taro.hooks.d.ts b/packages/taro/types/taro.hooks.d.ts index 28587c66d7eb..99815523fc23 100644 --- a/packages/taro/types/taro.hooks.d.ts +++ b/packages/taro/types/taro.hooks.d.ts @@ -6,7 +6,7 @@ declare module './index' { * 页面展示时的回调。 * @supported global */ - useDidShow(callback: () => void): void + useDidShow(callback: (options?: getLaunchOptionsSync.LaunchOptions) => void): void /** * 页面隐藏时的回调。 @@ -100,7 +100,7 @@ declare module './index' { * 页面加载完成时的回调。 * @supported weapp, h5 */ - useLoad(callback: () => void): void + useLoad>(callback: (param: T) => void): void /** * 页面卸载时的回调。