-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
index.d.ts
52 lines (52 loc) · 1.36 KB
/
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
export function useCalendar({ initialDate, initialNumDays, date: dateProp, numDays: numDaysProp, events, weekStartsOn, headers: headersProp, }?: {
initialNumDays: number;
events: any[];
weekStartsOn: number;
headers: string[];
}): {
date: any;
days: any;
headers: any;
view: string;
numDays: any;
jump: any;
goToNext: any;
goToPrev: any;
goToToday: any;
goToDate: any;
getPrevButtonProps: any;
getNextButtonProps: any;
getTodayButtonProps: any;
setNumDays: any;
};
export function Calendar(props: any): any;
export namespace Calendar {
export { DEFAULTS as defaultProps };
export { useCalendar };
export { DAYS as days };
export { VIEWS as views };
}
export default Calendar;
declare namespace DEFAULTS {
export const initialNumDays: number;
export const events: any[];
import weekStartsOn = DAYS.SUNDAY;
export { weekStartsOn };
export { HEADERS as headers };
}
declare namespace DAYS {
const SUNDAY: number;
const MONDAY: number;
const TUESDAY: number;
const WEDNESDAY: number;
const THURSDAY: number;
const FRIDAY: number;
const SATURDAY: number;
}
declare namespace VIEWS {
const DAY: string;
const WEEK: string;
const MONTH: string;
const YEAR: string;
}
declare const HEADERS: string[];