mirror of
https://github.com/tabler/tabler.git
synced 2026-08-29 21:31:28 +04:00
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:
@@ -1,10 +1,14 @@
|
||||
---
|
||||
import type { HTMLTag } from 'astro/types'
|
||||
|
||||
// Card header (.card-header) with an optional h3.card-title; slot renders after the title.
|
||||
|
||||
interface Props {
|
||||
// `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 {
|
||||
title?: string
|
||||
/** heading element for the title, e.g. h2 — default h3 */
|
||||
as?: string
|
||||
/** card-header-light */
|
||||
light?: boolean
|
||||
class?: string
|
||||
|
||||
Reference in New Issue
Block a user