From b648740f4461bd68e1225cb90c3872fc711b3195 Mon Sep 17 00:00:00 2001 From: Wojciech Maj Date: Thu, 18 May 2023 19:47:45 +0200 Subject: [PATCH] Export component props type Closes #856 --- src/Calendar.tsx | 2 +- src/index.ts | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) 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;