Skip to content

Commit

Permalink
fix(types): add formatWeekNumberHeader to Formatters
Browse files Browse the repository at this point in the history
  • Loading branch information
gpbl committed Aug 31, 2024
1 parent 076d2a7 commit 9b27e58
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions src/types/shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import {
formatMonthDropdown,
formatWeekdayName,
formatWeekNumber,
formatWeekNumberHeader,
formatYearCaption,
formatYearDropdown
} from "../formatters/index.js";
Expand Down Expand Up @@ -98,20 +99,22 @@ export type DateLib = typeof dateLib;
export type Formatters = {
/** Format the caption of a month grid. */
formatCaption: typeof formatCaption;
/** @deprecated Use {@link Formatters.formatCaption} instead. */
formatMonthCaption: typeof formatMonthCaption;
/** Format the label in the month dropdown. */
formatMonthDropdown: typeof formatMonthDropdown;
/** @deprecated Use {@link Formatters.formatYearDropdown} instead. */
formatYearCaption: typeof formatYearCaption;
/** Format the label in the year dropdown. */
formatYearDropdown: typeof formatYearDropdown;
/** Format the day in the day cell. */
formatDay: typeof formatDay;
/** Format the label in the month dropdown. */
formatMonthDropdown: typeof formatMonthDropdown;
/** @deprecated Use {@link Formatters.formatCaption} instead. */
formatMonthCaption: typeof formatMonthCaption;
/** Format the week number. */
formatWeekNumber: typeof formatWeekNumber;
/** Format the header of the week number column. */
formatWeekNumberHeader: typeof formatWeekNumberHeader;
/** Format the week day name in the header. */
formatWeekdayName: typeof formatWeekdayName;
/** Format the label in the year dropdown. */
formatYearDropdown: typeof formatYearDropdown;
/** @deprecated Use {@link Formatters.formatYearDropdown} instead. */
formatYearCaption: typeof formatYearCaption;
};

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

0 comments on commit 9b27e58

Please sign in to comment.