From d52f4724fe8a1fa0001f4f91b11a30300891492d Mon Sep 17 00:00:00 2001 From: Knut Sveidqvist Date: Mon, 17 Jun 2024 14:20:05 +0200 Subject: [PATCH] #5237 Updated type for classdefs and styles --- packages/mermaid/src/rendering-util/types.d.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/mermaid/src/rendering-util/types.d.ts b/packages/mermaid/src/rendering-util/types.d.ts index 7addc5848..5c9373cc7 100644 --- a/packages/mermaid/src/rendering-util/types.d.ts +++ b/packages/mermaid/src/rendering-util/types.d.ts @@ -15,7 +15,8 @@ interface Node { description?: string[]; parentId?: string; position?: string; // Keep, this is for notes 'left of', 'right of', etc. Move into nodeNode - cssStyles?: string; // Renamed from `styles` to `cssStyles` + cssStyles?: string[]; // Renamed from `styles` to `cssStyles` + cssCompiledStyles?: string[]; cssClasses?: string; // Renamed from `classes` to `cssClasses` // style?: string; //REMOVE ✅ // class?: string; //REMOVE ✅ @@ -23,7 +24,7 @@ interface Node { // props?: Record; //REMOVE ✅ // type: string; // REMOVE, replace with isGroup: boolean, default false ✅ // borders?: string; //REMOVE ✅ - labelStyle?: string; + labelStyle?: string; // REMOVE - use cssStyles instead ✅ // Flowchart specific properties labelType?: string; // REMOVE? Always use markdown string, need to check for KaTeX - ⏳ wait with this one