From dc6897fed68104bb6dddeb62492cc9f664d4ef9e Mon Sep 17 00:00:00 2001 From: hirotomoyamada Date: Tue, 3 Sep 2024 00:29:19 +0900 Subject: [PATCH] refactor(utils/array): updated MixedArray type definition --- utils/array.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/array.ts b/utils/array.ts index 65888cf..226ff99 100644 --- a/utils/array.ts +++ b/utils/array.ts @@ -1,4 +1,4 @@ -export type MixedArray = string | (string | string)[] +export type MixedArray = string | string[] | undefined export const toArray = (mixedArray: MixedArray) => (Array.isArray(mixedArray) ? mixedArray.flat() : [mixedArray]).filter(Boolean)