From 500347df237ec076336b88d8fee61f6b575d3290 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=95=E7=BB=B4=E5=89=8D?= Date: Thu, 24 Jul 2025 21:35:48 +0800 Subject: [PATCH] Remove any & object types from the core platform MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Issue: https://gitee.com/openharmony/interface_sdk-js/issues/ICONPR Signed-off-by: 单维前 --- api/@ohos.account.distributedAccount.d.ts | 25 +++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/api/@ohos.account.distributedAccount.d.ts b/api/@ohos.account.distributedAccount.d.ts index 330a3bd341..f64c88c37a 100644 --- a/api/@ohos.account.distributedAccount.d.ts +++ b/api/@ohos.account.distributedAccount.d.ts @@ -29,6 +29,18 @@ import type { AsyncCallback } from './@ohos.base'; * @arkts 1.1&1.2 */ declare namespace distributedAccount { + /** + * RecordData is used for scalableData of DistributedInfo + * + * @typedef { undefined | null | Object | Record | Array } + * @syscap SystemCapability.Utils.Lang + * @crossplatform + * @atomicservice + * @since 20 + * @arkts 1.2 + */ + type RecordData = undefined | null | Object | Record | Array + /** * Gets the ability of the distributed account. * @@ -380,10 +392,19 @@ declare namespace distributedAccount { * * @type { ?object } * @syscap SystemCapability.Account.OsAccount - * @since arkts {'1.1':'8', '1.2':'20'} - * @arkts 1.1&1.2 + * @since 8 */ scalableData?: object; + + /** + * The scalable data in the distributed information of the OS account. + * + * @type { ?RecordData } + * @syscap SystemCapability.Account.OsAccount + * @since 20 + * @arkts 1.2 + */ + scalableData?: RecordData; } } -- Gitee