@astro-community/astro-embed-baseline-status
Version:
Component to easily embed the Baseline status of a web feature on your Astro site
15 lines (12 loc) • 459 B
text/typescript
export type StatusLevel = 'widely' | 'newly' | 'limited' | 'no_data';
export type SupportLevel = 'available' | 'unavailable' | 'no_data';
export type Browser = 'chrome' | 'edge' | 'firefox' | 'safari';
export interface BrowserImplementation {
status: SupportLevel;
}
export interface Feature {
name: string;
feature_id?: string;
browser_implementations?: Record<Browser, BrowserImplementation>;
baseline: { status?: StatusLevel; low_date?: string };
}