From 13d8a9b03273ea3bffd55d7c857145c6a898218e Mon Sep 17 00:00:00 2001 From: Andrew Jakubowicz Date: Fri, 12 Jan 2024 14:44:47 -0800 Subject: [PATCH] code review feedback - long type over multi-line. --- .../site/docs/v2/templates/directives.md | 10 ++++++++-- .../site/docs/v3/templates/directives.md | 10 ++++++++-- 2 files changed, 16 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 5149c8eb5..b77ade4cd 100644 --- a/packages/lit-dev-content/site/docs/v2/templates/directives.md +++ b/packages/lit-dev-content/site/docs/v2/templates/directives.md @@ -1831,7 +1831,10 @@ import {asyncAppend} from 'lit/directives/async-append.js'; ```ts -asyncAppend(iterable: AsyncIterable, mapper?: Function) +asyncAppend( + iterable: AsyncIterable, + mapper?: (item: Item, index?: number) => unknown +) ``` @@ -1924,7 +1927,10 @@ import {asyncReplace} from 'lit/directives/async-replace.js'; ```ts -asyncReplace(iterable: AsyncIterable, mapper?: Function) +asyncReplace( + 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 30ba52ee2..45f9d4920 100644 --- a/packages/lit-dev-content/site/docs/v3/templates/directives.md +++ b/packages/lit-dev-content/site/docs/v3/templates/directives.md @@ -1831,7 +1831,10 @@ import {asyncAppend} from 'lit/directives/async-append.js'; ```ts -asyncAppend(iterable: AsyncIterable, mapper?: Function) +asyncAppend( + iterable: AsyncIterable, + mapper?: (item: Item, index?: number) => unknown +) ``` @@ -1924,7 +1927,10 @@ import {asyncReplace} from 'lit/directives/async-replace.js'; ```ts -asyncReplace(iterable: AsyncIterable, mapper?: Function) +asyncReplace( + iterable: AsyncIterable, + mapper?: (item: Item, index?: number) => unknown +) ```