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>
This commit is contained in:
Bartosz-Do
2026-08-08 17:35:17 +02:00
committed by GitHub
co-authored by StarDev codecalm
parent 2777fff433
commit 0085eeba6e
14 changed files with 60 additions and 31 deletions
+7 -3
View File
@@ -1,9 +1,13 @@
---
import type { HTMLTag } from 'astro/types'
// Composable card container (.card). For the fixed demo-showcase card see ../cards/Card.astro.
interface Props {
/** element to render instead of div (e.g. form, a) */
as?: string
// `as` must stay out of the Props body: Astro's frontmatter scanner bails on a member
// literally named `as` and silently falls back to untyped props.
type PolymorphicProps = { as?: HTMLTag }
interface Props extends PolymorphicProps {
/** card-{size} body padding: sm | md | lg */
size?: string
class?: string