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
When we are developing Wechaty with Puppet Providers, we will always face an error of instanceof mismatch, like
instanceof
According to https://stackoverflow.com/a/47116527/1123955, we can define an Interface for our AbstractPuppet class:
interface Puppet extends AbstractPuppet { }
After that, we can always use the Interface of Puppet and never use instanceof again, for a better and a beautiful duck typing world.
The text was updated successfully, but these errors were encountered:
A workaround for now: wechaty/wechaty@2e951b7
Sorry, something went wrong.
Related to wechaty/wechaty#1930
No branches or pull requests
When we are developing Wechaty with Puppet Providers, we will always face an error of
instanceof
mismatch, likeAccording to https://stackoverflow.com/a/47116527/1123955, we can define an Interface for our AbstractPuppet class:
After that, we can always use the Interface of Puppet and never use
instanceof
again, for a better and a beautiful duck typing world.The text was updated successfully, but these errors were encountered: