UNPKG

git-contri-merged

Version:

A React component to display merged GitHub contribution graphs from multiple contributors

23 lines (22 loc) 852 B
import { ContributionDay, ContributionData } from '../types'; /** * Merges contributions from multiple users into a single dataset * Contributions on the same date are summed together */ export declare function mergeContributions(userContributions: Map<string, ContributionDay[]>): ContributionData; /** * Fills in missing dates with zero contributions * Ensures we have a complete calendar grid */ export declare function fillMissingDates(contributions: ContributionDay[], startDate: Date, endDate: Date): ContributionDay[]; /** * Gets the date range from contributions */ export declare function getDateRange(contributions: ContributionDay[]): { start: Date; end: Date; }; /** * Groups contributions by week for calendar grid rendering */ export declare function groupByWeeks(contributions: ContributionDay[]): ContributionDay[][];