2
0
Yuki Takei 4 жил өмнө
parent
commit
a69571d1c1

+ 1 - 3
packages/app/src/utils/array-utils.ts

@@ -1,6 +1,6 @@
 // converts non-array item to array
 // converts non-array item to array
 
 
-const toArrayIfNot = (item) => {
+export const toArrayIfNot = (item?: unknown): any[] => {
   if (item == null) {
   if (item == null) {
     return [];
     return [];
   }
   }
@@ -11,5 +11,3 @@ const toArrayIfNot = (item) => {
 
 
   return [item];
   return [item];
 };
 };
-
-module.exports = toArrayIfNot;