diff --git a/src/Calendar.tsx b/src/Calendar.tsx index 6a3c9f22..c7c5c435 100644 --- a/src/Calendar.tsx +++ b/src/Calendar.tsx @@ -66,7 +66,7 @@ const defaultProps = { showNeighboringMonth: true, }; -type CalendarProps = { +export type CalendarProps = { activeStartDate?: Date; allowPartialRange?: boolean; calendarType?: CalendarType; diff --git a/src/index.ts b/src/index.ts index b21b75c1..ba8e23b0 100644 --- a/src/index.ts +++ b/src/index.ts @@ -5,6 +5,10 @@ import DecadeView from './DecadeView'; import YearView from './YearView'; import MonthView from './MonthView'; +import type { CalendarProps } from './Calendar'; + export { Calendar, Navigation, CenturyView, DecadeView, YearView, MonthView }; +export type { CalendarProps }; + export default Calendar;