Skip to content

Commit

Permalink
asyncReplace and asyncAppend have an optional mapper function
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewJakubowicz committed Jan 12, 2024
1 parent 65924ae commit 45b4e5d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/lit-dev-content/site/docs/v2/templates/directives.md
Original file line number Diff line number Diff line change
Expand Up @@ -1831,7 +1831,7 @@ import {asyncAppend} from 'lit/directives/async-append.js';
<td class="wide-cell">
```ts
asyncAppend(iterable: AsyncIterable)
asyncAppend(iterable: AsyncIterable, mapper?: (item: Item, index?: number) => unknown)
```
</td>
Expand Down Expand Up @@ -1924,7 +1924,7 @@ import {asyncReplace} from 'lit/directives/async-replace.js';
<td class="wide-cell">
```ts
asyncReplace(iterable: AsyncIterable)
asyncReplace(iterable: AsyncIterable, mapper?: (item: Item, index?: number) => unknown)
```
</td>
Expand Down
4 changes: 2 additions & 2 deletions packages/lit-dev-content/site/docs/v3/templates/directives.md
Original file line number Diff line number Diff line change
Expand Up @@ -1831,7 +1831,7 @@ import {asyncAppend} from 'lit/directives/async-append.js';
<td class="wide-cell">
```ts
asyncAppend(iterable: AsyncIterable)
asyncAppend(iterable: AsyncIterable, mapper?: (item: Item, index?: number) => unknown)
```
</td>
Expand Down Expand Up @@ -1924,7 +1924,7 @@ import {asyncReplace} from 'lit/directives/async-replace.js';
<td class="wide-cell">
```ts
asyncReplace(iterable: AsyncIterable)
asyncReplace(iterable: AsyncIterable, mapper?: (item: Item, index?: number) => unknown)
```
</td>
Expand Down

0 comments on commit 45b4e5d

Please sign in to comment.