From 8a425e0ee3c2b495a4b2dc92999e6dae334ada8c Mon Sep 17 00:00:00 2001 From: qianli22 Date: Fri, 12 Sep 2025 03:25:13 +0000 Subject: [PATCH 1/2] update api/@ohos.window.d.ts. keyframe number to int or long Signed-off-by: qianli22 --- api/@ohos.window.d.ts | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/api/@ohos.window.d.ts b/api/@ohos.window.d.ts index 69d0beedad..70c66c2b48 100644 --- a/api/@ohos.window.d.ts +++ b/api/@ohos.window.d.ts @@ -4735,7 +4735,7 @@ declare namespace window { * * @interface KeyFramePolicy * @syscap SystemCapability.Window.SessionManager - * @since 20 dynamic + * @since 20 dynamic&static */ interface KeyFramePolicy { /** @@ -4743,45 +4743,45 @@ declare namespace window { * * @type { boolean } * @syscap SystemCapability.Window.SessionManager - * @since 20 dynamic + * @since 20 dynamic&static */ enable: boolean; /** * Set the drag interval to notify rect change in millisecond. * - * @type { ?number } + * @type { ?int } * @syscap SystemCapability.Window.SessionManager - * @since 20 dynamic + * @since 20 dynamic&static */ - interval?: number; + interval?: int; /** * Set the drag distance to notify rect change in px. * - * @type { ?number } + * @type { ?long } * @syscap SystemCapability.Window.SessionManager - * @since 20 dynamic + * @since 20 dynamic&static */ - distance?: number; + distance?: long; /** * Set the rect change animation duration in millisecond. * - * @type { ?number } + * @type { ?long } * @syscap SystemCapability.Window.SessionManager - * @since 20 dynamic + * @since 20 dynamic&static */ - animationDuration?: number; + animationDuration?: long; /** * Set then rect change animation delay in millisecond * - * @type { ?number } + * @type { ?long } * @syscap SystemCapability.Window.SessionManager - * @since 20 dynamic + * @since 20 dynamic&static */ - animationDelay?: number; + animationDelay?: long; } /** @@ -10869,7 +10869,7 @@ declare namespace window { * @throws { BusinessError } 1300004 - Unauthorized operation. * @throws { BusinessError } 1300016 - Parameter error. Possible cause: 1. Invalid parameter range. 2. Incorrect parameter format. * @syscap SystemCapability.Window.SessionManager - * @since 20 dynamic + * @since 20 dynamic&static */ setDragKeyFramePolicy(keyFramePolicy: KeyFramePolicy): Promise; } -- Gitee From 96a0008ba660d7a6a9fc7a8f4efb9c11232af5da Mon Sep 17 00:00:00 2001 From: qianli22 Date: Fri, 12 Sep 2025 06:40:44 +0000 Subject: [PATCH 2/2] update api/@ohos.window.d.ts. Signed-off-by: qianli22 --- api/@ohos.window.d.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/api/@ohos.window.d.ts b/api/@ohos.window.d.ts index 70c66c2b48..f7da2029d5 100644 --- a/api/@ohos.window.d.ts +++ b/api/@ohos.window.d.ts @@ -4750,20 +4750,20 @@ declare namespace window { /** * Set the drag interval to notify rect change in millisecond. * - * @type { ?int } + * @type { ?long } * @syscap SystemCapability.Window.SessionManager * @since 20 dynamic&static */ - interval?: int; + interval?: long; /** * Set the drag distance to notify rect change in px. * - * @type { ?long } + * @type { ?int } * @syscap SystemCapability.Window.SessionManager * @since 20 dynamic&static */ - distance?: long; + distance?: int; /** * Set the rect change animation duration in millisecond. -- Gitee