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
Would you take a PR with some change to the readme, suggesting to go with 2. And adding support for it in Typescript such that.
myDate.addDays(3)
Is replaced by:
myDate[addDays](3)
Of course there is some type and code generation issues to resolve. But It seems like the sensitive thing to do.
The text was updated successfully, but these errors were encountered:
I agree. There is also a slightly simpler way in letting the function themselves index into the prototype, like
function addDays() { ... } Date.prototype[addDays] = addDays
...but TS currently complains about that since addDays is not a symbol or string or number
addDays
symbol
string
number
Sorry, something went wrong.
and to answer your question @arturohernandez10 - sure go ahead with a PR!
No branches or pull requests
Would you take a PR with some change to the readme, suggesting to go with 2. And adding support for it in Typescript such that.
Is replaced by:
Of course there is some type and code generation issues to resolve. But It seems like the sensitive thing to do.
The text was updated successfully, but these errors were encountered: