mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-14 06:43:25 +08:00
fix typescript error
This commit is contained in:
parent
a975c8c9cd
commit
9f2d29b68b
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user