Enable astro/tsconfigs/strictest in the docs package (#2835)

This commit is contained in:
Paweł Kuna
2026-08-08 00:51:22 +02:00
committed by GitHub
parent 5c0a612127
commit 512ede545c
3 changed files with 10 additions and 10 deletions
+1 -1
View File
@@ -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
}
+8 -8
View File
@@ -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 {
+1 -1
View File
@@ -1,5 +1,5 @@
{
"extends": "astro/tsconfigs/strict",
"extends": "astro/tsconfigs/strictest",
"include": [
".astro/types.d.ts",
"**/*"