From 00e0ab39f8da9ffb6fffdd7121a69f3aaa071fd3 Mon Sep 17 00:00:00 2001 From: Benjamin Canac Date: Thu, 30 Jun 2022 17:21:08 +0200 Subject: [PATCH] fix(utils): types --- src/runtime/utils/colors.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/runtime/utils/colors.ts b/src/runtime/utils/colors.ts index 78524237..a547dbdb 100644 --- a/src/runtime/utils/colors.ts +++ b/src/runtime/utils/colors.ts @@ -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('|')