Skip to content

Commit

Permalink
Fix type error
Browse files Browse the repository at this point in the history
  • Loading branch information
miya committed Jan 13, 2024
1 parent 6684f5c commit 8076b4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CalcMethod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8076b4e

Please sign in to comment.