Skip to content

Commit

Permalink
Remove casting in fetchEvents.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
dgparmar14 committed Jun 28, 2024
1 parent 05a8b40 commit e678e68
Show file tree
Hide file tree
Showing 5 changed files with 317 additions and 289 deletions.
24 changes: 1 addition & 23 deletions lib/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,6 @@ export interface ActivityData {
pr_stale: number;
authored_issue_and_pr: AuthoredIssueAndPr[];
}
export interface ProcessData {
[key: string]: ActivityData;
}

export interface Highlights {
points: number;
Expand Down Expand Up @@ -70,26 +67,7 @@ export const ACTIVITY_TYPES = [
"pr_merged",
"pr_collaborated",
] as const;
export interface Action {
event: string;
source: {
type: string;
issue: {
pull_request: boolean;
repository: {
full_name: string;
};
user: {
login: string;
};
number: number;
};
};
assignee: {
login: string;
};
created_at: Date;
}

export interface Activity {
type: (typeof ACTIVITY_TYPES)[number];
title: string;
Expand Down
Loading

0 comments on commit e678e68

Please sign in to comment.