Revert "Enable ts-strict for colorUtil.ts (#1239)" (#1240)

This reverts commit c3b2697568.
This commit is contained in:
Chenlei Hu
2024-10-12 15:58:43 -04:00
committed by GitHub
parent c3b2697568
commit 015ee2df15

View File

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