diff --git a/packages/mermaid/src/types.ts b/packages/mermaid/src/types.ts index c477e2b9bb..917f2730c3 100644 --- a/packages/mermaid/src/types.ts +++ b/packages/mermaid/src/types.ts @@ -1,4 +1,4 @@ -import { interpolateToCurve } from './utils.js'; +import type { interpolateToCurve } from './utils.js'; export interface Point { x: number; diff --git a/packages/mermaid/src/utils.ts b/packages/mermaid/src/utils.ts index c121e23bd3..0811a15dcb 100644 --- a/packages/mermaid/src/utils.ts +++ b/packages/mermaid/src/utils.ts @@ -230,10 +230,7 @@ export const isSubstringInArray = function (str: string, arr: string[]): number * @param defaultCurve - The default curve to return * @returns The curve factory to use */ -export function interpolateToCurve( - interpolate: string | undefined, - defaultCurve: CurveFactory -) { +export function interpolateToCurve(interpolate: string | undefined, defaultCurve: CurveFactory) { if (!interpolate) { return defaultCurve; }