• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (c) 2021 Huawei Device Co., Ltd.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 *     http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15
16/**
17 * looping function.
18 * @since 7
19 */
20/**
21 * looping function.
22 * @form
23 * @since 9
24 */
25interface ForEachInterface {
26  /**
27   * Set the value, array, and key.
28   * @since 7
29   */
30  /**
31   * Set the value, array, and key.
32   * @form
33   * @since 9
34   */
35  (
36    arr: Array<any>,
37    itemGenerator: (item: any, index?: number) => void,
38    keyGenerator?: (item: any, index?: number) => string,
39  ): ForEachInterface;
40}
41
42/**
43 * Defines ForEach Component.
44 * @since 7
45 */
46/**
47 * Defines ForEach Component.
48 * @form
49 * @since 9
50 */
51declare const ForEach: ForEachInterface;
52