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
getday
All versions
No response
const now = new Date(); const now_day = now.getDay(); // type "number"
const now = new Date(); const now_day = now.getDay(); // type "0 | 1 | 2 | 3 | 4 | 5 | 6"
Using type narrowing will be return correct type and improve usability.
The text was updated successfully, but these errors were encountered:
A change like this was previously rejected: #36401 (comment)
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
π Search Terms
getday
π Version & Regression Information
All versions
β― Playground Link
No response
π» Code
No response
π Actual behavior
π Expected behavior
Additional information about the issue
Using type narrowing will be return correct type and improve usability.
The text was updated successfully, but these errors were encountered: