From 0085eeba6e1c1bc9a1885582fbe2b1c9711bdde8 Mon Sep 17 00:00:00 2001 From: Bartosz-Do Date: Sat, 8 Aug 2026 17:35:17 +0200 Subject: [PATCH] Fix all `pnpm type-check` warnings and restore lost `Props` typing (#2805) Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: codecalm <1282324+codecalm@users.noreply.github.com> --- docs/layouts/DocsLayout.astro | 2 +- shared/components/cards/Card.astro | 2 +- shared/components/layout/HeaderActionsPrint.astro | 2 +- shared/components/marketing/hero/Side.astro | 2 +- shared/layouts/BaseLayout.astro | 1 - shared/ui/AdvancedTable.astro | 2 -- shared/ui/Card.astro | 10 +++++++--- shared/ui/CardHeader.astro | 10 +++++++--- shared/ui/CardSubtitle.astro | 10 +++++++--- shared/ui/CardTitle.astro | 10 +++++++--- shared/ui/FormHint.astro | 10 +++++++--- shared/ui/ListGroup.astro | 10 +++++++--- shared/ui/ListGroupItem.astro | 10 +++++++--- shared/ui/Subheader.astro | 10 +++++++--- 14 files changed, 60 insertions(+), 31 deletions(-) diff --git a/docs/layouts/DocsLayout.astro b/docs/layouts/DocsLayout.astro index 454085e04..870de5eec 100644 --- a/docs/layouts/DocsLayout.astro +++ b/docs/layouts/DocsLayout.astro @@ -307,7 +307,7 @@ const docsLinks = docs.links as DocsLink[]; elements.forEach(function (element) { const clipboard = new ClipboardJS(element, { - text: function (trigger) { + text: function () { return element.getAttribute('data-clipboard-text'); } }); diff --git a/shared/components/cards/Card.astro b/shared/components/cards/Card.astro index 6f504bcc3..1b7648e71 100644 --- a/shared/components/cards/Card.astro +++ b/shared/components/cards/Card.astro @@ -31,7 +31,7 @@ interface Props { footer?: boolean; footerButton?: boolean; footerButtons?: boolean; - /** a ">" prefix pushes the element (and every following one) to the right — `right` is never reset */ + /** a right-angle-bracket prefix pushes the element (and every following one) to the right — `right` is never reset */ footerElements?: string[]; progress?: boolean; } diff --git a/shared/components/layout/HeaderActionsPrint.astro b/shared/components/layout/HeaderActionsPrint.astro index 154d14d93..178eed0e9 100644 --- a/shared/components/layout/HeaderActionsPrint.astro +++ b/shared/components/layout/HeaderActionsPrint.astro @@ -3,7 +3,7 @@ import Icon from '@ui/Icon.astro' --- - diff --git a/shared/components/marketing/hero/Side.astro b/shared/components/marketing/hero/Side.astro index ca6f09a18..eefe0e828 100644 --- a/shared/components/marketing/hero/Side.astro +++ b/shared/components/marketing/hero/Side.astro @@ -58,7 +58,7 @@ const typedId = 'typed'