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 In this function https://github.com/iamkun/dayjs/blob/dev/src/plugin/duration/index.js#L151 and in the website: https://day.js.org/docs/en/durations/humanize we can see that humanize does not require an argument.
However, in the type declaration, it is mandatory: https://github.com/iamkun/dayjs/blob/dev/types/plugin/duration.d.ts#L14
Expected behavior The withSuffix parameters should be declared optional
I can do the fix if needed, Thanks for your time
The text was updated successfully, but these errors were encountered:
Thanks. PR is most welcomed.
Sorry, something went wrong.
fixed in #1065
No branches or pull requests
Describe the bug
In this function
https://github.com/iamkun/dayjs/blob/dev/src/plugin/duration/index.js#L151
and in the website: https://day.js.org/docs/en/durations/humanize
we can see that humanize does not require an argument.
However, in the type declaration, it is mandatory:
https://github.com/iamkun/dayjs/blob/dev/types/plugin/duration.d.ts#L14
Expected behavior
The withSuffix parameters should be declared optional
I can do the fix if needed,
Thanks for your time
The text was updated successfully, but these errors were encountered: