mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-04 04:01:52 +00:00
Added extensions usage for cytoscape
This commit is contained in:
Vendored
+20
-1
@@ -4527,4 +4527,23 @@ declare namespace cytoscape {
|
||||
*/
|
||||
promise(animationEvent?: "completed" | "complete" | "frame"): Promise<EventObject>;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Cytoscape extension type
|
||||
* Definition of an extension would be in following form:
|
||||
* @example
|
||||
* declare module 'cytoscape-ext' {
|
||||
* const ext: cytoscape.Ext;
|
||||
* export = ext;
|
||||
* }
|
||||
*/
|
||||
type Ext = (cytoscape: Function) => void;
|
||||
/**
|
||||
* Register imported extension into cytoscape
|
||||
* @param module Entry point for the extension, got by module = require('cy-ext')
|
||||
* or by import module from 'cy-ext'
|
||||
* http://js.cytoscape.org/#extensions
|
||||
*/
|
||||
function use(module: Ext): void;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user