mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-27 10:20:42 +01:00
fix(utils): types
This commit is contained in:
@@ -13,6 +13,6 @@ export const colorsToExclude = [
|
|||||||
'stone'
|
'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