fix(utils): types

This commit is contained in:
Benjamin Canac
2022-06-30 17:21:08 +02:00
parent 5a8b078d65
commit 00e0ab39f8

View File

@@ -13,6 +13,6 @@ export const colorsToExclude = [
'stone'
]
export const excludeColors = (colors: object) => Object.keys(omit(colors, colorsToExclude)).map(color => kebabCase(color))
export const excludeColors = (colors: object) => Object.keys(omit(colors, colorsToExclude)).map(color => kebabCase(color)) as string[]
export const colorsAsRegex = (colors: string[]) => colors.join('|')
export const colorsAsRegex = (colors: string[]): string => colors.join('|')