Skip to content
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

Missing function prototype for updateClusteredNode #338

Closed
kmalyavina opened this issue Jan 9, 2020 · 1 comment · Fixed by #339
Closed

Missing function prototype for updateClusteredNode #338

kmalyavina opened this issue Jan 9, 2020 · 1 comment · Fixed by #339
Labels

Comments

@kmalyavina
Copy link
Contributor

Ran into the problem when trying to convert what was basically the Neighborhood Highlighting example but with clusters from regular JS to TypeScript.

network.updateClusteredNode() exists in the type definition, compiler is happy, but breaks with TypeError: network.updateClusteredNode is not a function when it tries to execute.

If I try network.clustering.updateClusteredNode() while leaving type as Network, the compiler complains that Property 'clustering' does not exist on type 'Network'.

Assigning type any and doing the above works fine, but kinda defeats the purpose of using TS.

The issue would be resolved by merging almende/vis#3846. (Seems it was briefly looked at in #43)

@vis-bot
Copy link
Collaborator

vis-bot commented Jan 12, 2020

🎉 This issue has been resolved in version 6.5.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants