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

formatWeekNumberHeader type is missing in type Formatters #2395

Closed
hsnaydd opened this issue Aug 23, 2024 · 0 comments · Fixed by #2412
Closed

formatWeekNumberHeader type is missing in type Formatters #2395

hsnaydd opened this issue Aug 23, 2024 · 0 comments · Fixed by #2412
Assignees

Comments

@hsnaydd
Copy link
Contributor

hsnaydd commented Aug 23, 2024

formatWeekNumberHeader formatter is used in the following line but this does not exist in type Formatters

<components.WeekNumberHeader
aria-label={labelWeekNumberHeader(labelOptions)}
className={classNames[UI.WeekNumberHeader]}
role="columnheader"
style={styles?.[UI.WeekNumberHeader]}
>
{formatWeekNumberHeader()}
</components.WeekNumberHeader>

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 week number. */
formatWeekNumber: typeof formatWeekNumber;
/** Format the week day name in the header. */
formatWeekdayName: typeof formatWeekdayName;
};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants