Skip to content

The Open Source DocuSign Alternative.

chore: fix ts errors in metrics

Ephraim Atta-Duncan07492100d290
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<HTMLDivElement> & {
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,