fix(deadline-banner): annotate map return type for ts strict
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -25,7 +25,7 @@
|
||||
(x): x is ResolvedItem =>
|
||||
typeof x === "object" && x !== null && "terminZeit" in x,
|
||||
)
|
||||
.map((x) => ({ x, ts: Date.parse(x.terminZeit ?? "") }))
|
||||
.map((x): { x: ResolvedItem; ts: number } => ({ x, ts: Date.parse(x.terminZeit ?? "") }))
|
||||
.filter(({ ts }) => !isNaN(ts) && ts >= now)
|
||||
.sort((a, b) => a.ts - b.ts);
|
||||
return items[0]?.x ?? null;
|
||||
|
||||
@@ -17,11 +17,8 @@
|
||||
</script>
|
||||
|
||||
{#snippet quoteMarkup()}
|
||||
<blockquote
|
||||
data-block-type="quote"
|
||||
class="{borderClass} {alignClass} {extraClass}"
|
||||
>
|
||||
<p class="text-lg text-zinc-700 mb-2!">"{block.quote ?? ""}"</p>
|
||||
<blockquote class="{borderClass} {alignClass} {extraClass}">
|
||||
<p class="text-lg text-zinc-700 mb-2! ">"{block.quote ?? ""}"</p>
|
||||
{#if block.author}
|
||||
<cite class="mt-1 block not-italic text-xs text-zinc-400">{block.author}</cite>
|
||||
{/if}
|
||||
|
||||
Reference in New Issue
Block a user