From e8ac181279c5fda4caa0c0c1d54b1f8ba6397bcd Mon Sep 17 00:00:00 2001 From: liujia178 Date: Wed, 13 Aug 2025 16:31:38 +0800 Subject: [PATCH] fix util ScopeHelper label Issue: https://gitee.com/openharmony/interface_sdk-js/issues/ICSS6Q Signed-off-by: liujia178 --- api/@ohos.util.d.ets | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/api/@ohos.util.d.ets b/api/@ohos.util.d.ets index 74bd927e08..a746fa352b 100644 --- a/api/@ohos.util.d.ets +++ b/api/@ohos.util.d.ets @@ -267,6 +267,9 @@ declare namespace util { * * @param { ScopeType } lowerObj - A ScopeType value * @param { ScopeType } upperObj - A ScopeType value + * @syscap SystemCapability.Utils.Lang + * @crossplatform + * @atomicservice * @since 20 */ constructor(lowerObj: T, upperObj: T); @@ -275,6 +278,9 @@ declare namespace util { * Obtains a string representation of the current range. * * @returns { string } Returns a string representation of the current range object. + * @syscap SystemCapability.Utils.Lang + * @crossplatform + * @atomicservice * @since 20 */ toString(): string; @@ -284,6 +290,9 @@ declare namespace util { * * @param { ScopeHelper } range - A Scope range object * @returns { ScopeHelper } Returns the intersection of a given range and the current range. + * @syscap SystemCapability.Utils.Lang + * @crossplatform + * @atomicservice * @since 20 */ intersect(range: ScopeHelper): ScopeHelper; @@ -294,6 +303,9 @@ declare namespace util { * @param { ScopeType } lowerObj - A ScopeType value * @param { ScopeType } upperObj - A ScopeType value * @returns { ScopeHelper } Returns the intersection of the current range and the range specified by the given lower and upper bounds. + * @syscap SystemCapability.Utils.Lang + * @crossplatform + * @atomicservice * @since 20 */ intersect(lowerObj: T, upperObj: T): ScopeHelper; @@ -302,6 +314,9 @@ declare namespace util { * Obtains the upper bound of the current range. * * @returns { ScopeType } Returns the upper bound of the current range. + * @syscap SystemCapability.Utils.Lang + * @crossplatform + * @atomicservice * @since 20 */ getUpper(): T; @@ -310,6 +325,9 @@ declare namespace util { * Obtains the lower bound of the current range. * * @returns { ScopeType } Returns the lower bound of the current range. + * @syscap SystemCapability.Utils.Lang + * @crossplatform + * @atomicservice * @since 20 */ getLower(): T; @@ -320,6 +338,9 @@ declare namespace util { * @param { ScopeType } lowerObj - A ScopeType value * @param { ScopeType } upperObj - A ScopeType value * @returns { ScopeHelper } Returns the smallest range that includes the current range and the given lower and upper bounds. + * @syscap SystemCapability.Utils.Lang + * @crossplatform + * @atomicservice * @since 20 */ expand(lowerObj: T, upperObj: T): ScopeHelper; @@ -329,6 +350,9 @@ declare namespace util { * * @param { ScopeHelper } range - A Scope range object * @returns { ScopeHelper } Returns the smallest range that includes the current range and a given range. + * @syscap SystemCapability.Utils.Lang + * @crossplatform + * @atomicservice * @since 20 */ expand(range: ScopeHelper): ScopeHelper; @@ -338,6 +362,9 @@ declare namespace util { * * @param { ScopeType } value - A ScopeType value * @returns { ScopeHelper } Returns the smallest range that includes the current range and a given value. + * @syscap SystemCapability.Utils.Lang + * @crossplatform + * @atomicservice * @since 20 */ expand(value: T): ScopeHelper; @@ -347,6 +374,9 @@ declare namespace util { * * @param { ScopeType } value - A ScopeType value * @returns { boolean } If the value is within the current range return true,otherwise return false. + * @syscap SystemCapability.Utils.Lang + * @crossplatform + * @atomicservice * @since 20 */ contains(value: T): boolean; @@ -356,6 +386,9 @@ declare namespace util { * * @param { ScopeHelper } range - A Scope range * @returns { boolean } If the current range is within the given range return true,otherwise return false. + * @syscap SystemCapability.Utils.Lang + * @crossplatform + * @atomicservice * @since 20 */ contains(range: ScopeHelper): boolean; @@ -365,6 +398,9 @@ declare namespace util { * * @param { ScopeType } value - A ScopeType value * @returns { ScopeType } Returns a ScopeType object that a given value is clamped to the current range. + * @syscap SystemCapability.Utils.Lang + * @crossplatform + * @atomicservice * @since 20 */ clamp(value: T): T; -- Gitee