mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-18 14:08:06 +01:00
fix(utils): types
This commit is contained in:
@@ -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('|')
|
||||
|
||||
Reference in New Issue
Block a user