We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Just build with typescript.
When using date-fns there will be:
ERROR in C:/Users/Mario/Documents/projects/privat/fiva-office-app/node_modules/material-ui-pickers/utils/luxon-utils.d.ts(2,26): TS2307: Cannot find module 'luxon'. ERROR in C:/Users/Mario/Documents/projects/privat/fiva-office-app/node_modules/material-ui-pickers/utils/moment-utils.d.ts(2,24): TS2307: Cannot find module 'moment'.
I think the reason are the imports of all the utils (also unused ones) in MuiPickersUtilsProvider.d.ts
import DateFnsUtils from './date-fns-utils'; import MomentUtils from './moment-utils'; import LuxonUtils from './luxon-utils';
utils: typeof MomentUtils | typeof DateFnsUtils | typeof LuxonUtils; should be utils: Utils<any> ...or similar.
utils: typeof MomentUtils | typeof DateFnsUtils | typeof LuxonUtils;
utils: Utils<any>
The text was updated successfully, but these errors were encountered:
[#406] [typescript] Make utils prop of MuiPickersUtilsProvider typed …
cb4498b
…as any
Merge pull request #411 from dmtrKovalenko/feature/typescript-utils-p…
52bdd95
…rop-broken [#406] [typescript] Make utils prop of MuiPickersUtilsProvider typed …
No branches or pull requests
Environment
Steps to reproduce
Just build with typescript.
Actual behavior
When using date-fns there will be:
I think the reason are the imports of all the utils (also unused ones) in MuiPickersUtilsProvider.d.ts
utils: typeof MomentUtils | typeof DateFnsUtils | typeof LuxonUtils;
should be
utils: Utils<any>
...or similar.
The text was updated successfully, but these errors were encountered: