Skip to content

Commit 4f3109d

Browse files
committed
Merge branch 'main' of github.com:gpbl/react-day-picker
2 parents ba0f140 + 01a4530 commit 4f3109d

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

src/types/shared.ts

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import {
1010
formatMonthDropdown,
1111
formatWeekdayName,
1212
formatWeekNumber,
13+
formatWeekNumberHeader,
1314
formatYearCaption,
1415
formatYearDropdown
1516
} from "../formatters/index.js";
@@ -98,20 +99,22 @@ export type DateLib = typeof dateLib;
9899
export type Formatters = {
99100
/** Format the caption of a month grid. */
100101
formatCaption: typeof formatCaption;
101-
/** @deprecated Use {@link Formatters.formatCaption} instead. */
102-
formatMonthCaption: typeof formatMonthCaption;
103-
/** Format the label in the month dropdown. */
104-
formatMonthDropdown: typeof formatMonthDropdown;
105-
/** @deprecated Use {@link Formatters.formatYearDropdown} instead. */
106-
formatYearCaption: typeof formatYearCaption;
107-
/** Format the label in the year dropdown. */
108-
formatYearDropdown: typeof formatYearDropdown;
109102
/** Format the day in the day cell. */
110103
formatDay: typeof formatDay;
104+
/** Format the label in the month dropdown. */
105+
formatMonthDropdown: typeof formatMonthDropdown;
106+
/** @deprecated Use {@link Formatters.formatCaption} instead. */
107+
formatMonthCaption: typeof formatMonthCaption;
111108
/** Format the week number. */
112109
formatWeekNumber: typeof formatWeekNumber;
110+
/** Format the header of the week number column. */
111+
formatWeekNumberHeader: typeof formatWeekNumberHeader;
113112
/** Format the week day name in the header. */
114113
formatWeekdayName: typeof formatWeekdayName;
114+
/** Format the label in the year dropdown. */
115+
formatYearDropdown: typeof formatYearDropdown;
116+
/** @deprecated Use {@link Formatters.formatYearDropdown} instead. */
117+
formatYearCaption: typeof formatYearCaption;
115118
};
116119

117120
/** Map of functions to translate ARIA labels for the relative elements. */

0 commit comments

Comments
 (0)