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
Typescript provides only one dayOfYear method without arg:
dayOfYear
declare module 'dayjs' { interface Dayjs { dayOfYear(): number } }
https://github.com/iamkun/dayjs/blob/v1.8.20/types/plugin/dayOfYear.d.ts
Expected behavior
A second method is described in the documentation, it should be available in types too: https://github.com/iamkun/dayjs/blob/v1.8.20/docs/en/Plugin.md
// first method: dayOfYear(): number dayjs('2010-01-01').dayOfYear() // 1 // second method: dayOfYear(year: number): Date dayjs('2010-01-01').dayOfYear(365) // 2010-12-31
Not sure what is the best way to describe it with types, but this should help:
Information
The text was updated successfully, but these errors were encountered:
Thanks.
Fixed in #799.
And will release soon.
Sorry, something went wrong.
No branches or pull requests
Describe the bug
Typescript provides only one
dayOfYear
method without arg:https://github.com/iamkun/dayjs/blob/v1.8.20/types/plugin/dayOfYear.d.ts
Expected behavior
A second method is described in the documentation, it should be available in types too: https://github.com/iamkun/dayjs/blob/v1.8.20/docs/en/Plugin.md
Not sure what is the best way to describe it with types, but this should help:
Information
The text was updated successfully, but these errors were encountered: