Closed hokwanhung closed 6 months ago
Do you have @types/luxon
installed? Typescript types for Luxon are not part of this project, they are maintained by DefinitelyTyped: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/luxon
They do not contain the defaultWeekSettings
yet. I suggest you open an issue there.
@diesieben07 Yes, I have @types/luxon
installed; thank you for your comments, and I will transfer the issue there. Great thanks and hope you had a lovely New Year's Eve.
Describe the bug I am trying to override the
defaultWeekSettings
for the MUI Date Calendar with TypeScript. However, it appears thatTypeScript
does not find thetype
inSettings.js
.To Reproduce![Edit luxon-defaultWeekSettings-error-with-TypeScript](https://codesandbox.io/static/img/play-codesandbox.svg)
Actual vs Expected behavior Actual behaviour: The below
TypeScript
error occurs.Expected behaviour: Can successfully get the
defaultWeekSettings
without any errors.Desktop (please complete the following information):
Windows
120.0.2210.91 (Official build) (64-bit)
3.3.7
en-US
Additional context Suspected related parts of code in
Settings.js
: