From 1362dbfabacfbb1769002ffd521fd8a12d4788fc Mon Sep 17 00:00:00 2001 From: Andrew Jakubowicz Date: Fri, 12 Jan 2024 14:55:00 -0800 Subject: [PATCH] add generic type to async iterator --- packages/lit-dev-content/site/docs/v2/templates/directives.md | 4 ++-- packages/lit-dev-content/site/docs/v3/templates/directives.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/lit-dev-content/site/docs/v2/templates/directives.md b/packages/lit-dev-content/site/docs/v2/templates/directives.md index b77ade4cd..cc7a56bd5 100644 --- a/packages/lit-dev-content/site/docs/v2/templates/directives.md +++ b/packages/lit-dev-content/site/docs/v2/templates/directives.md @@ -1832,7 +1832,7 @@ import {asyncAppend} from 'lit/directives/async-append.js'; ```ts asyncAppend( - iterable: AsyncIterable, + iterable: AsyncIterable, mapper?: (item: Item, index?: number) => unknown ) ``` @@ -1928,7 +1928,7 @@ import {asyncReplace} from 'lit/directives/async-replace.js'; ```ts asyncReplace( - iterable: AsyncIterable, + iterable: AsyncIterable, mapper?: (item: Item, index?: number) => unknown ) ``` diff --git a/packages/lit-dev-content/site/docs/v3/templates/directives.md b/packages/lit-dev-content/site/docs/v3/templates/directives.md index 45f9d4920..780a5af11 100644 --- a/packages/lit-dev-content/site/docs/v3/templates/directives.md +++ b/packages/lit-dev-content/site/docs/v3/templates/directives.md @@ -1832,7 +1832,7 @@ import {asyncAppend} from 'lit/directives/async-append.js'; ```ts asyncAppend( - iterable: AsyncIterable, + iterable: AsyncIterable, mapper?: (item: Item, index?: number) => unknown ) ``` @@ -1928,7 +1928,7 @@ import {asyncReplace} from 'lit/directives/async-replace.js'; ```ts asyncReplace( - iterable: AsyncIterable, + iterable: AsyncIterable, mapper?: (item: Item, index?: number) => unknown ) ```