From 64cc767dd5d714fdc178bb30ebb8dffb0f3cbe49 Mon Sep 17 00:00:00 2001 From: Alois Klink Date: Mon, 5 Aug 2024 23:05:55 +0900 Subject: [PATCH] fix: add `mc` mermaid theme to types --- packages/mermaid/src/config.type.ts | 2 +- packages/mermaid/src/schemas/config.schema.yaml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/mermaid/src/config.type.ts b/packages/mermaid/src/config.type.ts index 454655105..600a9edfe 100644 --- a/packages/mermaid/src/config.type.ts +++ b/packages/mermaid/src/config.type.ts @@ -61,7 +61,7 @@ export interface MermaidConfig { * You may also use `themeCSS` to override this value. * */ - theme?: 'default' | 'base' | 'dark' | 'forest' | 'neutral' | 'neo' | 'neo-dark' | 'null'; + theme?: 'default' | 'base' | 'dark' | 'forest' | 'neutral' | 'neo' | 'neo-dark' | 'mc' | 'null'; themeVariables?: any; themeCSS?: string; /** diff --git a/packages/mermaid/src/schemas/config.schema.yaml b/packages/mermaid/src/schemas/config.schema.yaml index 55c063662..7223aba25 100644 --- a/packages/mermaid/src/schemas/config.schema.yaml +++ b/packages/mermaid/src/schemas/config.schema.yaml @@ -67,6 +67,7 @@ properties: - neutral - neo - neo-dark + - mc - 'null' # should this be a `null`-type? meta:enum: 'null': Can be set to disable any pre-defined mermaid theme