Skip to content

Commit

Permalink
chore: code style
Browse files Browse the repository at this point in the history
  • Loading branch information
Yash-Singh1 committed May 4, 2024
1 parent c021f71 commit 05bdb05
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/mermaid/src/types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { interpolateToCurve } from './utils.js';
import type { interpolateToCurve } from './utils.js';

export interface Point {
x: number;
Expand Down
5 changes: 1 addition & 4 deletions packages/mermaid/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 05bdb05

Please sign in to comment.