chore: fix ts errors in metrics

This commit is contained in:
Ephraim Atta-Duncan
2023-08-15 11:13:13 +00:00
committed by Mythie
parent 3407952a5e
commit 07492100d2

View File

@ -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,