Something went wrong. Try again.
Fork of Chiri for Astro for my blog forked from quillmatiq.com/augment
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394import type { TOCItem, ReadingTime } from './content.types'
// TOC component props interfaceexport interface TOCProps { toc?: TOCItem[]}
// Post layout props interface (generic, not tied to specific data source)export interface PostLayoutProps { title: string pubDate: Date image?: string readingTime?: ReadingTime toc?: TOCItem[]}
// Transition props interfaceexport interface TransitionProps { type: 'post' | 'page' class?: string}
// Layout props interfaceexport interface LayoutProps extends TransitionProps { title?: string description?: string}
// BaseHead component props interfaceexport interface BaseHeadProps { title: string description: string ogImage?: string atUri?: string}
// ImageOptimizer component props interfaceexport interface ImageOptimizerProps { src: string | ImageMetadata alt: string width?: number height?: number quality?: number format?: 'avif' | 'webp' | 'jpeg' | 'png' loading?: 'lazy' | 'eager' decoding?: 'async' | 'sync' | 'auto' class?: string caption?: string priority?: boolean}
// FormattedDate component props interfaceexport interface FormattedDateProps { date: Date format?: string context?: 'list' | 'post' | 'default'}
// GitHub repository data interfaceexport interface GitHubRepoData { owner?: { avatar_url: string } description?: string stargazers_count?: number forks_count?: number license?: { spdx_id: string }}
// Cached repository data interfaceexport interface CachedRepoData { data: GitHubRepoData timestamp: number}
// GitHub card UI elements interfaceexport interface CardElements { avatar: HTMLElement | null desc: HTMLElement | null stars: HTMLElement | null forks: HTMLElement | null license: HTMLElement | null}
// LinkCard metadata interface (fetched from URL)export interface LinkCardMetadata { title: string description: string image: string imageAlt: string}