From d3c782e787b46fa0e3ee7c698e8c0e00d450108b Mon Sep 17 00:00:00 2001 From: liubihao Date: Mon, 21 Jul 2025 19:25:47 +0800 Subject: [PATCH] [sync] fix foreach api. Signed-off-by: liubihao --- api/arkui/component/forEach.d.ets | 22 +++------------------- 1 file changed, 3 insertions(+), 19 deletions(-) diff --git a/api/arkui/component/forEach.d.ets b/api/arkui/component/forEach.d.ets index c3430f872d..209838adb9 100644 --- a/api/arkui/component/forEach.d.ets +++ b/api/arkui/component/forEach.d.ets @@ -1,5 +1,5 @@ /* - * Copyright (c) 2025 Huawei Device Co., Ltd. + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -12,28 +12,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - - -// HADWRITTEN, DO NOT REGENERATE - /** * @file * @kit ArkUI * @arkts 1.2 */ -import { memo, ComponentBuilder, __memo_context_type, __memo_id_type } from './../stateManagement/runtime' -/** - * declare ForEachAttribute - * - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice - * @since 20 - */ -export interface ForEachAttribute {} +import { memo, __memo_context_type, __memo_id_type } from './../stateManagement/runtime' /** * Defines ForEach Component. @@ -41,7 +27,6 @@ export interface ForEachAttribute {} * @param { Array } arr * @param { function } itemGenerator * @param { function } keyGenerator - * @returns { ForEachAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form @@ -49,9 +34,8 @@ export interface ForEachAttribute {} * @since 20 */ @memo -@ComponentBuilder export declare function ForEach(arr: Array, @memo itemGenerator: (item: T, index: number) => void, keyGenerator?: (item: T, index: number) => string, -): ForEachAttribute \ No newline at end of file +): void -- Gitee