📄 index.d.ts
/home/palash/git/site/node_modules/react-github-calendar/build/index.d.ts
Language: ts • Lines: 18
import { Props as ActivityCalendarProps } from 'react-activity-calendar';

export type Activity = {
	date: string;
	count: number;
	level: 0 | 1 | 2 | 3 | 4;
};
export type Year = number | "last";
export type Props = {
	username: string;
	errorMessage?: string;
	throwOnError?: boolean;
	transformData?: (data: Array<Activity>) => Array<Activity>;
	year?: Year;
} & Omit<ActivityCalendarProps, "data">;
export declare const GitHubCalendar: import("react").ForwardRefExoticComponent<Omit<Props, "ref"> & import("react").RefAttributes<HTMLElement>>;

export {};