From 8076b4ecaefb76889249ab84842b1821c29ab314 Mon Sep 17 00:00:00 2001 From: Shun Miyazawa Date: Sat, 13 Jan 2024 13:22:06 +0000 Subject: [PATCH] Fix type error --- src/CalcMethod.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CalcMethod.ts b/src/CalcMethod.ts index c65c0ed..4184b20 100644 --- a/src/CalcMethod.ts +++ b/src/CalcMethod.ts @@ -86,7 +86,7 @@ const CalcMethod: CalcMethod[] = [ { methodType: MethodType.hmode, calcMethod: createCalcMethod('row', mode) }, { methodType: MethodType.vmedian, calcMethod: createCalcMethod('column', median) }, { methodType: MethodType.hmedian, calcMethod: createCalcMethod('row', median) }, -] as const; +]; export const getCalcMethod = (methodType: MethodType): CalcMethod['calcMethod'] | undefined => { return CalcMethod.find((v) => v.methodType === methodType)?.calcMethod;