Skip to content

Commit

Permalink
fix(utils): types
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamincanac committed Jun 30, 2022
1 parent 5a8b078 commit 00e0ab3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/runtime/utils/colors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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('|')

0 comments on commit 00e0ab3

Please sign in to comment.