From e2f509ace4694a8b43824e4818eeb8df33023487 Mon Sep 17 00:00:00 2001 From: Xavier Ho Date: Fri, 20 Dec 2019 17:22:01 +1100 Subject: [PATCH] [cytoscape] adds warnings function definition (#41139) * Adds Cytoscape.warnings definition * Adds contribution link --- types/cytoscape/index.d.ts | 7 +++++++ 1 file changed, 7 insertions(+) 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; }