From 3998093c642e98718acb19138d73634e7de2b31b Mon Sep 17 00:00:00 2001 From: chyyy0213 Date: Sat, 19 Mar 2022 15:57:57 +0800 Subject: [PATCH] fixed 4a6da2d from https://gitee.com/chyyy0213/interface_sdk-js/pulls/1259 modify api7 interface Change-Id: I4189622b65ee64ba18e85669dddcb3641b34e30c Signed-off-by: chyyy0213 --- api/@ohos.window.d.ts | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/api/@ohos.window.d.ts b/api/@ohos.window.d.ts index fff008013e..5abe4042e9 100644 --- a/api/@ohos.window.d.ts +++ b/api/@ohos.window.d.ts @@ -33,11 +33,7 @@ declare namespace window { /** * System alert. */ - TYPE_SYSTEM_ALERT, - /** - * System gesture. - */ - TYPE_SYSTEM_GESTURE + TYPE_SYSTEM_ALERT } /** @@ -271,7 +267,7 @@ declare namespace window { /** * The dimbehind value of window. - * @since 6 + * @since 7 */ dimBehindValue: number @@ -663,7 +659,7 @@ declare namespace window { * @syscap SystemCapability.WindowManager.WindowManager.Core * @since 7 */ - on(type: 'keyboardHeightChange', callback: AsyncCallback): void; + on(type: 'keyboardHeightChange', callback: Callback): void; /** * unregister the callback of keyboardHeightChange @@ -671,7 +667,7 @@ declare namespace window { * @syscap SystemCapability.WindowManager.WindowManager.Core * @since 7 */ - off(type: 'keyboardHeightChange', callback: AsyncCallback): void; + off(type: 'keyboardHeightChange', callback?: Callback): void; /** * Whether the window supports thr wide gamut setting. -- Gitee