From 727e56ce901a8e945255ec2406fcc68b104bc496 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 7a8e16c3c0..ddb0f5c6a2 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 @@ -681,7 +677,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 @@ -689,7 +685,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