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

Locale.weekdaysMin(Boolean) not declared #5964

Open
ducati749 opened this issue Jan 10, 2022 · 0 comments
Open

Locale.weekdaysMin(Boolean) not declared #5964

ducati749 opened this issue Jan 10, 2022 · 0 comments

Comments

@ducati749
Copy link

ducati749 commented Jan 10, 2022

Describe the bug
In moment.d.ts the weekdays, weekdaysShort, weekdaysMin functions are not declared with Boolean parameter as listed in the doc: https://momentjs.com/docs/#/i18n/locale-data/

To Reproduce
The following code leads to compilation error: Argument of type 'boolean' is not assignable to parameter of type 'Moment'.ts(2345)
moment.localeData().weekdaysMin(true);

Moment-specific environment

TypeScript version: 4.3.5
Mon Jan 10 2022 14:49:24 GMT+0100 (közép-európai téli idő)
2022. 01. 10. 14:49:24
-60
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36
2.29.1

@ducati749 ducati749 changed the title Locale.weekdaysMin(Boolean) not defined Locale.weekdaysMin(Boolean) not declared Jan 10, 2022
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

No branches or pull requests

1 participant