diff --git a/api/arkui/component/lazyForEach.static.d.ets b/api/arkui/component/lazyForEach.static.d.ets index 9b39b039955a1c6379fbf16e5f2ecad8127bc644..b286afd01a7b7d7eab19bbc327864cf83593c577 100644 --- a/api/arkui/component/lazyForEach.static.d.ets +++ b/api/arkui/component/lazyForEach.static.d.ets @@ -19,6 +19,7 @@ */ import { Builder } from './builder'; +import { ItemGeneratorFunc, KeyGeneratorFunc } from './forEach'; import { ComponentBuilder } from './../stateManagement/runtime'; /** @@ -472,30 +473,6 @@ export interface IDataSource { */ export interface LazyForEachAttribute {} -/** - * Define item generator function. - * - * @typedef { function } ItemGeneratorFunc - * @param { T } item - item in an array - * @param { number } index - index corresponding to an array item. - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @since 20 - */ -@Builder -declare type ItemGeneratorFunc = (item: T, index: number) => void; - -/** - * Define key generator function. - * - * @typedef { function } KeyGeneratorFunc - * @param { T } item - item in an array - * @param { number } index - index corresponding to an array item. - * @returns {string} Character string generated based on item and index - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @since 20 - */ -declare type KeyGeneratorFunc = (item: T, index: number) => string; - /** * Enter the value to obtain the LazyForEach. *