From 78f5247af9dd690f30eabe81e621ff3183372905 Mon Sep 17 00:00:00 2001 From: Chenlei Hu Date: Sat, 12 Oct 2024 15:58:25 -0400 Subject: [PATCH] Revert "Enable ts-strict for colorUtil.ts (#1239)" This reverts commit c3b26975685398f04adbd11b9500c09b9db775ab. --- src/utils/colorUtil.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/utils/colorUtil.ts b/src/utils/colorUtil.ts index 5d23107f..162f3005 100644 --- a/src/utils/colorUtil.ts +++ b/src/utils/colorUtil.ts @@ -1,3 +1,4 @@ +// @ts-strict-ignore import { memoize } from 'lodash' type RGB = { r: number; g: number; b: number } @@ -34,8 +35,6 @@ function rgbToHsl({ r, g, b }: RGB): HSL { case b: h = (r - g) / d + 4 break - default: - throw new Error('NOT_REACHED') } h /= 6 }