-
-
Notifications
You must be signed in to change notification settings - Fork 231
New issue
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
fix: typescript issue related to aedes.handle
and client
#802
fix: typescript issue related to aedes.handle
and client
#802
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need to set it to null
simply add the ?
parameter, when omitted it will be undefined
to specify optional parameter in JavaScript, I have to assign it to what do you think? |
also we should not use expressions like shall I fix that as well? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I dunno what you mean, does using the changes I suggest here creates errors somewhere?
if you do not want to change javascript files, but only typescript files, that would work. but then the discrepancy between the code and the documentation stays. |
aedes.handle
and client
changes on js files undone. |
almost undefined vs null it's been an interesting discussion |
Pull Request Test Coverage Report for Build 3823427449Warning: This coverage report may be inaccurate.This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Details
💛 - Coveralls |
@haci-xplora I think it may make sense to also add a types test here that also calls handle without the req to prevent regressions After that this is good to merge 👍🏼 |
Superseded by #812 |
ref: issue 801