chore: code style

This commit is contained in:
Yash Singh
2024-05-04 16:37:07 -07:00
parent c021f71afc
commit 05bdb05a9e
2 changed files with 2 additions and 5 deletions

View File

@@ -1,4 +1,4 @@
import { interpolateToCurve } from './utils.js'; import type { interpolateToCurve } from './utils.js';
export interface Point { export interface Point {
x: number; x: number;

View File

@@ -230,10 +230,7 @@ export const isSubstringInArray = function (str: string, arr: string[]): number
* @param defaultCurve - The default curve to return * @param defaultCurve - The default curve to return
* @returns The curve factory to use * @returns The curve factory to use
*/ */
export function interpolateToCurve( export function interpolateToCurve(interpolate: string | undefined, defaultCurve: CurveFactory) {
interpolate: string | undefined,
defaultCurve: CurveFactory
) {
if (!interpolate) { if (!interpolate) {
return defaultCurve; return defaultCurve;
} }