-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.d.ts
53 lines (47 loc) · 965 Bytes
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/**
* How active a given day was, from 0 (no contributions) to 4 (a lot of contributions)
*/
export declare type Fill = 0 | 1 | 2 | 3 | 4;
/**
* An abbreviated month name
*/
export declare type MonthLabel = 'Jan' |
'Feb' |
'Mar' |
'Apr' |
'May' |
'Jun' |
'Jul' |
'Aug' |
'Sep' |
'Oct' |
'Nov' |
'Dec' |
string;
/**
* A given day's data
*/
export declare interface IRect {
/** Number of contributions */
count: number;
/** Fill colour intensity */
fill: Fill;
/** The date in YYYY-mm-dd format */
date: string;
}
/** Grouped {@link IRect}s */
export declare type IG = IRect[];
/** Month position data */
export declare interface IMonth {
/** Abbreviated month name */
txt: MonthLabel;
/** Horizontal offset */
x: number;
}
/** A full parsed payload of a user's calendar */
export declare interface IParsedPayload {
/** Grouped {@link IRect}s */
gs: IG[];
/** Month position data */
months: IMonth[];
}