From 00423ed1524ce54f45867570f95d609963b34d8a Mon Sep 17 00:00:00 2001 From: Sidharth Vinod Date: Sun, 11 Feb 2024 20:05:08 +0530 Subject: [PATCH] Fix config --- packages/mermaid/src/config.type.ts | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/packages/mermaid/src/config.type.ts b/packages/mermaid/src/config.type.ts index a5cb190ba3..fd66490329 100644 --- a/packages/mermaid/src/config.type.ts +++ b/packages/mermaid/src/config.type.ts @@ -152,7 +152,6 @@ export interface MermaidConfig { wrap?: boolean; fontSize?: number; } - /** * The object containing configurations specific for packet diagrams. * @@ -185,16 +184,6 @@ export interface PacketDiagramConfig extends BaseDiagramConfig { */ paddingY?: number; } - -/** - * The object containing configurations specific for block diagrams. - * - * This interface was referenced by `MermaidConfig`'s JSON-Schema - * via the `definition` "BlockDiagramConfig". - */ -export interface BlockDiagramConfig extends BaseDiagramConfig { - padding?: number; -} /** * This interface was referenced by `MermaidConfig`'s JSON-Schema * via the `definition` "BaseDiagramConfig". @@ -209,6 +198,15 @@ export interface BaseDiagramConfig { */ useMaxWidth?: boolean; } +/** + * The object containing configurations specific for block diagrams. + * + * This interface was referenced by `MermaidConfig`'s JSON-Schema + * via the `definition` "BlockDiagramConfig". + */ +export interface BlockDiagramConfig extends BaseDiagramConfig { + padding?: unknown; +} /** * The object containing configurations specific for c4 diagrams *