From f7c3190346745640670c43cdd0ced2c230e93962 Mon Sep 17 00:00:00 2001 From: Ephraim Atta-Duncan Date: Tue, 15 Aug 2023 11:13:13 +0000 Subject: [PATCH] chore: fix ts errors in metrics --- apps/marketing/src/app/(marketing)/open/gh-metrics.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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,