-
Notifications
You must be signed in to change notification settings - Fork 154
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
Add a new option enableWarning
#44
Conversation
…ages fix: add types for `enableWarning` Add missing semicolon
9fc332d
to
d10f8e0
Compare
This is a must have for serious production use in my book. Is there a chance of merging? |
It's better to pass callback function instead of flag
|
I prefer the solution from @alexeyMohnatkin. Please see the comment in the PR. Thanks. |
@cwtuan So why not just accpet Alexey's solution? It's fine to me. What I want is to solve the problem, no matter how. Btw, I think the variable name, |
@zry656565 any suggestion for the variable name? |
@cwtuan Maybe a more general name like |
And it would be better that the handler's type is defined as |
I agree that
|
@zry656565 I think it's bad practice to disable these warnings. You may never know that something's wrong |
enableWarning
to determine if showing warning messages.