Removed unused type definitions.
This commit is contained in:
18
types/CalenderContext.d.ts
vendored
18
types/CalenderContext.d.ts
vendored
@@ -29,11 +29,6 @@ interface Month {
|
|||||||
week6: MonthDay[];
|
week6: MonthDay[];
|
||||||
}
|
}
|
||||||
|
|
||||||
interface MonthInfo {
|
|
||||||
date: Date;
|
|
||||||
title: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
interface WeekLayout {
|
interface WeekLayout {
|
||||||
weekdays: DaysOfWeek;
|
weekdays: DaysOfWeek;
|
||||||
month: Month;
|
month: Month;
|
||||||
@@ -44,21 +39,8 @@ interface MonthLayout {
|
|||||||
monday: WeekLayout;
|
monday: WeekLayout;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface MonthContext extends MonthInfo {
|
|
||||||
layout: MonthLayout;
|
|
||||||
}
|
|
||||||
|
|
||||||
interface UpdateCalendarProps {
|
interface UpdateCalendarProps {
|
||||||
year: number;
|
year: number;
|
||||||
month: number;
|
month: number;
|
||||||
day: number;
|
day: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface CalenderContextState {
|
|
||||||
currDate: Date;
|
|
||||||
setCurrDate: React.Dispatch<React.SetStateAction<Date>>;
|
|
||||||
selectedDate: Date;
|
|
||||||
title: string;
|
|
||||||
layout: MonthLayout;
|
|
||||||
updateDate: (input: UpdateCalendarProps) => void;
|
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user