From 265993a2abe4195e831f9557f958f422000ca6e9 Mon Sep 17 00:00:00 2001 From: liujia178 Date: Tue, 12 Aug 2025 16:36:12 +0800 Subject: [PATCH] fix BitVector interface Issue: https://gitee.com/openharmony/interface_sdk-js/issues/ICSKUD Signed-off-by: liujia178 --- arkts/@arkts.collections.d.ets | 26 ++++++-------------------- 1 file changed, 6 insertions(+), 20 deletions(-) diff --git a/arkts/@arkts.collections.d.ets b/arkts/@arkts.collections.d.ets index 8286c65709..2542efd44f 100644 --- a/arkts/@arkts.collections.d.ets +++ b/arkts/@arkts.collections.d.ets @@ -11972,33 +11972,19 @@ declare namespace collections { */ values(): IterableIterator; /** - * Returns the item at that index. - * - * @param { int } index - The zero-based index of the desired code unit. - * Throws error if index < 0 or index >= bitVector.length. - * @returns { int } The element in the bitVector matching the given index. - * @throws { BusinessError } 10200001 - The value of index is out of range. - * @syscap SystemCapability.Utils.Lang - * @crossplatform - * @atomicservice - * @since 20 - * @arkts 1.2 - */ - $_get(index: int): int; - /** - * Set the value of item at that index. + * Accesses or sets the element at the specified index in the BitVector. * - * @param { int } index - The index of the element to set. - * Throws error if index < 0 or index >= bitVector.length. - * @param { int } value - The value to set at the specified index. + * @param { int } index - The index of the element to access or set. + * Throws an error if index < 0 or index >= bitVector.length. + * @returns { int } The element in the BitVector at the given index. * @throws { BusinessError } 10200001 - The value of index is out of range. * @syscap SystemCapability.Utils.Lang - * @atomicservice * @crossplatform + * @atomicservice * @since 20 * @arkts 1.2 */ - $_set(index: int, value: int): void; + [index: int]: int; } /** -- Gitee