mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-03 22:37:03 +00:00
fix export issue for cytoscape (#20616)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
'use strict';
|
||||
import { cytoscape } from 'cytoscape';
|
||||
import cytoscape = require('cytoscape');
|
||||
|
||||
const parentCSS = {
|
||||
'padding-top': '10px',
|
||||
|
||||
Vendored
+5
-6
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user