diff --git a/apps/marketing/src/app/(marketing)/open/gh-metrics.tsx b/apps/marketing/src/app/(marketing)/open/gh-metrics.tsx index 552edf167..1e2fa453d 100644 --- a/apps/marketing/src/app/(marketing)/open/gh-metrics.tsx +++ b/apps/marketing/src/app/(marketing)/open/gh-metrics.tsx @@ -11,12 +11,14 @@ import { StargazersType } from './page'; export type GithubMetricProps = HTMLAttributes & { data: StargazersType; - metricKey: keyof StargazersType; + metricKey: MetricsDataKey; title: string; label: string; chartHeight?: number; }; +export type MetricsDataKey = 'stars' | 'forks' | 'mergedPRs' | 'openIssues'; + export const GithubMetric = ({ className, data,