summaryrefslogtreecommitdiffstats
path: root/chromium/third_party/node/node_modules/lit-html/directives/map.d.ts
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/node/node_modules/lit-html/directives/map.d.ts')
-rw-r--r--chromium/third_party/node/node_modules/lit-html/directives/map.d.ts23
1 files changed, 23 insertions, 0 deletions
diff --git a/chromium/third_party/node/node_modules/lit-html/directives/map.d.ts b/chromium/third_party/node/node_modules/lit-html/directives/map.d.ts
new file mode 100644
index 00000000000..0ebaf3ec1d4
--- /dev/null
+++ b/chromium/third_party/node/node_modules/lit-html/directives/map.d.ts
@@ -0,0 +1,23 @@
+/**
+ * @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 \ No newline at end of file