summaryrefslogtreecommitdiffstats
path: root/chromium/third_party/node/node_modules/lit-html/directives/join.d.ts
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/node/node_modules/lit-html/directives/join.d.ts')
-rw-r--r--chromium/third_party/node/node_modules/lit-html/directives/join.d.ts21
1 files changed, 21 insertions, 0 deletions
diff --git a/chromium/third_party/node/node_modules/lit-html/directives/join.d.ts b/chromium/third_party/node/node_modules/lit-html/directives/join.d.ts
new file mode 100644
index 00000000000..682fc603ab2
--- /dev/null
+++ b/chromium/third_party/node/node_modules/lit-html/directives/join.d.ts
@@ -0,0 +1,21 @@
+/**
+ * @license
+ * Copyright 2021 Google LLC
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+/**
+ * Returns an iterable containing the values in `items` interleaved with the
+ * `joiner` value.
+ *
+ * @example
+ *
+ * ```ts
+ * render() {
+ * return html`
+ * ${join(items, html`<span class="separator">|</span>`)}
+ * `;
+ * }
+ */
+export declare function join<I, J>(items: Iterable<I> | undefined, joiner: (index: number) => J): Iterable<I | J>;
+export declare function join<I, J>(items: Iterable<I> | undefined, joiner: J): Iterable<I | J>;
+//# sourceMappingURL=join.d.ts.map \ No newline at end of file