From d95573393206bc3931202d363bfb6c54974e0203 Mon Sep 17 00:00:00 2001 From: muhamedsalih-tw <104364298+muhamedsalih-tw@users.noreply.github.com> Date: Fri, 28 Oct 2022 07:37:55 +0530 Subject: Transform welcome component tree to TS (#715) --- src/helpers/array-helpers.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/helpers') diff --git a/src/helpers/array-helpers.ts b/src/helpers/array-helpers.ts index 33be12fa7..ffb584eab 100644 --- a/src/helpers/array-helpers.ts +++ b/src/helpers/array-helpers.ts @@ -1,6 +1,6 @@ -export default function shuffleArray(arr: any[]): any[] { +export default function shuffleArray(arr: T[]): T[] { return arr - .map(a => [Math.random(), a]) + .map(a => [Math.random(), a] as [number, T]) .sort((a, b) => a[0] - b[0]) .map(a => a[1]); } -- cgit v1.2.3-54-g00ecf