Skip to content

Remove @types/cytoscape dependency #111

@pshurygin

Description

@pshurygin

The latest library version contains a dependency on the @types/cytoscape package, but the latest versions of cytoscape have native types built-in and @types/cytoscape is effectively deprecated.

The problem is, when installing cytoscape-layers we also get @types/cytoscape automatically pulled into our project, and those types mess up with the proper types from the cytoscape package.

To Reproduce

  1. npm i cytoscape-layers & npm i cytoscape
  2. import cy from cytoscape in the typescript context
  3. See the types being used - they come from @types/cytoscape instead of cytoscape

Expected behavior

Dependency on @types/cytoscape should be removed, and peer dependency on the cytoscape package should be updated to the minimum of 3.31.

Context

  • Version: 3.0.0
  • Browser: Any

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions