Skip to content

Commit 76cad0f

Browse files
committed
hex types
1 parent 68b5c9c commit 76cad0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib_src/misc/colors.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,6 @@ function rgb2hex(rgb) {
4040
}
4141
}
4242

43-
function hex(x) {
43+
function hex(x: string) {
4444
return ("0" + parseInt(x, 10).toString(16)).slice(-2)
4545
}

0 commit comments

Comments
 (0)