diff --git a/docs/components/DocsCard.astro b/docs/components/DocsCard.astro index 40eb08af6..d936ea1f8 100644 --- a/docs/components/DocsCard.astro +++ b/docs/components/DocsCard.astro @@ -4,7 +4,7 @@ import Icon from '@ui/Icon.astro' interface Props { /** When omitted, the card renders as a non-interactive "Coming soon" tile. */ href?: string - icon?: string + icon?: string | undefined title: string description: string } diff --git a/docs/layouts/DocsLayout.astro b/docs/layouts/DocsLayout.astro index ca9743768..454085e04 100644 --- a/docs/layouts/DocsLayout.astro +++ b/docs/layouts/DocsLayout.astro @@ -18,15 +18,15 @@ interface Props { /** front matter: the page's h1 heading */ title: string; /** front matter: optional SEO title override */ - seoTitle?: string; + seoTitle?: string | undefined; /** front matter: lead below the title (p.text-secondary.fs-3.lh-3) */ - summary?: string; + summary?: string | undefined; /** front matter: SEO description */ - description?: string; + description?: string | undefined; /** front matter: optional SEO description override */ - seoDescription?: string; + seoDescription?: string | undefined; /** front matter `added-in`: renders the "Added in X" badge next to the h1 */ - addedIn?: string; + addedIn?: string | undefined; /** Table of contents (h2/h3 from the markdown content) — see DocsToc.astro */ toc?: TocItem[]; /** @@ -35,13 +35,13 @@ interface Props { * Drives the active menu entry, pagination, the "Edit this page" link, and * the relative favicon path. */ - url?: string; + url?: string | undefined; /** Extra libraries from libs.json (css+js) */ docsLibs?: string[]; /** hides child and previous/next page navigation */ - hidePagination?: boolean; + hidePagination?: boolean | undefined; /** repo-relative source path for the "Edit this page" link, e.g. "docs/pages/ui/components/alert.mdx" */ - editPath?: string; + editPath?: string | undefined; } const { diff --git a/docs/tsconfig.json b/docs/tsconfig.json index e19f86a63..bb04a3432 100644 --- a/docs/tsconfig.json +++ b/docs/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "astro/tsconfigs/strict", + "extends": "astro/tsconfigs/strictest", "include": [ ".astro/types.d.ts", "**/*"