diff --git a/types/cytoscape/index.d.ts b/types/cytoscape/index.d.ts index 2e4eb49988..e51d70751e 100644 --- a/types/cytoscape/index.d.ts +++ b/types/cytoscape/index.d.ts @@ -7,6 +7,7 @@ // Cerberuser // Andrej Kirejeŭ // Peter Ferrarotto +// Xavier Ho // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // // Translation from Objects in help to Typescript interface. @@ -4962,4 +4963,10 @@ declare namespace cytoscape { * http://js.cytoscape.org/#extensions */ function use(module: Ext): void; + /** + * Surpress Cytoscape internal warnings globally with a flag. + * @param condition If true, all Cytoscape warnings are surpressed. + * https://js.cytoscape.org/#core/initialisation + */ + function warnings(condition: boolean): void; }