Skip to content

Commit

Permalink
Revert "Enable ts-strict for colorUtil.ts (#1239)"
Browse files Browse the repository at this point in the history
This reverts commit c3b2697.
  • Loading branch information
huchenlei authored Oct 12, 2024
1 parent c3b2697 commit 78f5247
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/utils/colorUtil.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-strict-ignore
import { memoize } from 'lodash'

type RGB = { r: number; g: number; b: number }
Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit 78f5247

Please sign in to comment.