UNPKG

github-contributions-counter

Version:

A simple Javascript API that will return the public github contributions history for a user based on a universal function

31 lines (30 loc) 1.05 kB
import { AxiosResponse } from 'axios'; export interface GetGithubContributions { username: string; token: string; } export interface Response extends AxiosResponse { data: { data: { user: { name: string; contributionsCollection: { contributionCalendar: { colors: string[]; totalContributions: number; weeks: { firstDay: string; contributionDays: Array<{ color: string; contributionCount: number; date: string; weekday: number; }>; }[]; }; }; }; }; }; } export declare const getGithubContributions: ({ username, token }: GetGithubContributions) => Promise<Response>;