mirror of
https://github.com/documenso/documenso.git
synced 2025-11-13 00:03:33 +10:00
chore: fix ts errors in metrics
This commit is contained in:
committed by
Mythie
parent
3407952a5e
commit
07492100d2
@ -11,12 +11,14 @@ import { StargazersType } from './page';
|
|||||||
|
|
||||||
export type GithubMetricProps = HTMLAttributes<HTMLDivElement> & {
|
export type GithubMetricProps = HTMLAttributes<HTMLDivElement> & {
|
||||||
data: StargazersType;
|
data: StargazersType;
|
||||||
metricKey: keyof StargazersType;
|
metricKey: MetricsDataKey;
|
||||||
title: string;
|
title: string;
|
||||||
label: string;
|
label: string;
|
||||||
chartHeight?: number;
|
chartHeight?: number;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type MetricsDataKey = 'stars' | 'forks' | 'mergedPRs' | 'openIssues';
|
||||||
|
|
||||||
export const GithubMetric = ({
|
export const GithubMetric = ({
|
||||||
className,
|
className,
|
||||||
data,
|
data,
|
||||||
|
|||||||
Reference in New Issue
Block a user