Cytoscape is looking into publishing its own typings for the library. Once it does, we can update our own APIs. Ref: cytoscape/cytoscape.js#3166