fix export issue for cytoscape (#20616)

This commit is contained in:
Shenghan Gao
2017-10-17 09:06:08 -07:00
committed by Andy
parent 14dd64b8cb
commit 9266e419ed
2 changed files with 6 additions and 7 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
'use strict';
import { cytoscape } from 'cytoscape';
import cytoscape = require('cytoscape');
const parentCSS = {
'padding-top': '10px',
+5 -6
View File
@@ -58,19 +58,18 @@
* A number of interfaces contain nothing as they server to collect interfaces.
*
*/
// export as namespace Cy
// export = cytoscape;
export = cytoscape;
export as namespace cytoscape;
export function cytoscape(options?: cytoscape.CytoscapeOptions): cytoscape.Core;
export function cytoscape(extensionName: string, foo: string, bar: any): cytoscape.Core;
declare function cytoscape(options?: cytoscape.CytoscapeOptions): cytoscape.Core;
declare function cytoscape(extensionName: string, foo: string, bar: any): cytoscape.Core;
export namespace cytoscape {
declare namespace cytoscape {
interface Position {
x: number;
y: number;
}
type HtmlElement = any;
type CssStyleDeclaration = any;
interface ElementDefinition {