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
Describe the bug
After installing last version (1.8.22) to be able to use isoWeek plugin by @iamkun, I get a typescript compilation error:
/node_modules/dayjs/plugin/isoWeek.d.ts(6,20): error TS2304: Cannot find name 'UnitType'.
In the regarding file, UnitType is not imported:
UnitType
import { PluginFunc, QUnitType, ConfigType } from 'dayjs' declare const plugin: PluginFunc export = plugin type ISOUnitType = UnitType | 'isoWeek'; // TS2304: Cannot find name 'UnitType'.
Expected behavior
Typescript build should be OK.
Information
Related issues
The text was updated successfully, but these errors were encountered:
will do thanks.
Sorry, something went wrong.
And it will be great if you could send us a pull request to fix this type definition error. 😬
@iamkun are you going to release a patch to npm with this one soon?
in this week
🎉 This issue has been resolved in version 1.8.23 🎉
The release is available on:
Your semantic-release bot 📦🚀
Successfully merging a pull request may close this issue.
Describe the bug
After installing last version (1.8.22) to be able to use isoWeek plugin by @iamkun, I get a typescript compilation error:
/node_modules/dayjs/plugin/isoWeek.d.ts(6,20): error TS2304: Cannot find name 'UnitType'.
In the regarding file,
UnitType
is not imported:Expected behavior
Typescript build should be OK.
Information
Related issues
The text was updated successfully, but these errors were encountered: