From 9f2d29b68b00d9719add89b4f23938ff2db45077 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Thu, 15 Dec 2022 06:09:22 -0800 Subject: [PATCH] fix typescript error --- packages/mermaid/src/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/mermaid/src/utils.ts b/packages/mermaid/src/utils.ts index 767fdaa7d..7c844ca8c 100644 --- a/packages/mermaid/src/utils.ts +++ b/packages/mermaid/src/utils.ts @@ -194,7 +194,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, defaultCurve: CurveFactory): CurveFactory { +export function interpolateToCurve(interpolate: string | undefined, defaultCurve: CurveFactory): CurveFactory { if (!interpolate) { return defaultCurve; }