1
0

feat: convert some helpers to typescript

This commit is contained in:
Dominik Pschenitschni
2022-02-13 20:09:12 +01:00
committed by kolaente
parent ba9f69344a
commit b5f867cc66
5 changed files with 11 additions and 6 deletions

View File

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