Skip to content

Commit

Permalink
Export component props type
Browse files Browse the repository at this point in the history
Closes #856
  • Loading branch information
wojtekmaj committed May 18, 2023
1 parent c7610a7 commit b648740
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Calendar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ const defaultProps = {
showNeighboringMonth: true,
};

type CalendarProps = {
export type CalendarProps = {
activeStartDate?: Date;
allowPartialRange?: boolean;
calendarType?: CalendarType;
Expand Down
4 changes: 4 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

0 comments on commit b648740

Please sign in to comment.