Skip to content

Commit b648740

Browse files
committed
Export component props type
Closes #856
1 parent c7610a7 commit b648740

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/Calendar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ const defaultProps = {
6666
showNeighboringMonth: true,
6767
};
6868

69-
type CalendarProps = {
69+
export type CalendarProps = {
7070
activeStartDate?: Date;
7171
allowPartialRange?: boolean;
7272
calendarType?: CalendarType;

src/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ import DecadeView from './DecadeView';
55
import YearView from './YearView';
66
import MonthView from './MonthView';
77

8+
import type { CalendarProps } from './Calendar';
9+
810
export { Calendar, Navigation, CenturyView, DecadeView, YearView, MonthView };
911

12+
export type { CalendarProps };
13+
1014
export default Calendar;

0 commit comments

Comments
 (0)