Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(types): add formatWeekNumberHeader to Formatters #2412

Merged
merged 1 commit into from
Aug 31, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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