Icard/angular-clarity-master(work.../node_modules/lit-html/development/directives/map.d.ts

23 lines
522 B
TypeScript
Raw Normal View History

2024-07-16 14:55:36 +00:00
/**
* @license
* Copyright 2021 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
/**
* Returns an iterable containing the result of calling `f(value)` on each
* value in `items`.
*
* @example
*
* ```ts
* render() {
* return html`
* <ul>
* ${map(items, (i) => html`<li>${i}</li>`)}
* </ul>
* `;
* }
* ```
*/
export declare function map<T>(items: Iterable<T> | undefined, f: (value: T, index: number) => unknown): Generator<unknown, void, unknown>;
//# sourceMappingURL=map.d.ts.map