fix typescript error

This commit is contained in:
Tom Moor 2022-12-15 06:09:22 -08:00 committed by GitHub
parent a975c8c9cd
commit 9f2d29b68b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}