feat: convert some helpers to typescript
This commit is contained in:

committed by
kolaente

parent
ba9f69344a
commit
b5f867cc66
@ -4,7 +4,7 @@
|
||||
* @param color
|
||||
* @returns {string}
|
||||
*/
|
||||
export const colorFromHex = color => {
|
||||
export function colorFromHex(color) {
|
||||
if (color.substring(0, 1) === '#') {
|
||||
color = color.substring(1, 7)
|
||||
}
|
||||
|
Reference in New Issue
Block a user