diff --git a/types/cytoscape/cytoscape-tests.ts b/types/cytoscape/cytoscape-tests.ts index dc0607a3c3..8ea28a323d 100644 --- a/types/cytoscape/cytoscape-tests.ts +++ b/types/cytoscape/cytoscape-tests.ts @@ -20,8 +20,8 @@ const parentCSS = { 'padding-left': '10px', 'padding-bottom': '10px', 'padding-right': '10px', - 'text-valign': 'top', - 'text-halign': 'center', + 'text-valign': 'top' as 'top', + 'text-halign': 'center' as 'center', 'background-color': '#CCC', 'font-size': 40, 'min-zoomed-font-size': 15 diff --git a/types/cytoscape/index.d.ts b/types/cytoscape/index.d.ts index aec7c9bf6c..938894d0aa 100644 --- a/types/cytoscape/index.d.ts +++ b/types/cytoscape/index.d.ts @@ -3466,8 +3466,12 @@ declare namespace cytoscape { /** * http://js.cytoscape.org/#style/node-body */ - interface Node extends Partial, PaddingNode { + interface Node extends Partial, PaddingNode, Partial { "label"?: string; + /** + * The CSS content field + */ + "content"?: string; /** * The width of the node’s body. * This property can take on the special value label