You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
ducati749
changed the title
Locale.weekdaysMin(Boolean) not defined
Locale.weekdaysMin(Boolean) not declared
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
The text was updated successfully, but these errors were encountered: