Skip to content

Commit 2a1c637

Browse files
committed
add: define yearly contributions return type
1 parent d9b918a commit 2a1c637

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/types/types.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,12 @@ export type GitHubCommit = {
3636
}[];
3737
};
3838

39+
export type GitHubContribution = {
40+
year: number;
41+
totalContributions: number;
42+
days: { contributionCount: number; date: string; color: string }[];
43+
};
44+
3945
export type UserLangStat = {
4046
lngName: string;
4147
coverage: number;

0 commit comments

Comments
 (0)