From 7391baae3409a573effb347898f49c71fc327ecf Mon Sep 17 00:00:00 2001 From: Basti Ortiz <39114273+Some-Dood@users.noreply.github.com> Date: Wed, 12 Oct 2022 01:14:09 +0800 Subject: [PATCH] fix: ensure that `ParseErrorFunction` type alias is compile-time only --- packages/mermaid/src/mermaid.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/mermaid/src/mermaid.ts b/packages/mermaid/src/mermaid.ts index 717675f0b..09842c426 100644 --- a/packages/mermaid/src/mermaid.ts +++ b/packages/mermaid/src/mermaid.ts @@ -8,7 +8,7 @@ import utils from './utils'; import { mermaidAPI } from './mermaidAPI'; import { addDetector } from './diagram-api/detectType'; import { isDetailedError } from './utils'; -import { ParseErrorFunction } from './Diagram'; +import type { ParseErrorFunction } from './Diagram'; /** * ## init