From 534be402fd162e94a809cea77d49a4f1f94e8ccd Mon Sep 17 00:00:00 2001 From: David Hill Date: Mon, 11 Nov 2024 22:21:09 +0000 Subject: [PATCH] Update test, casting of resulting array is no longer necessary --- packages/array-partition/index.tests.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/array-partition/index.tests.ts b/packages/array-partition/index.tests.ts index 2dd9706c8..ca593babe 100644 --- a/packages/array-partition/index.tests.ts +++ b/packages/array-partition/index.tests.ts @@ -2,7 +2,7 @@ import partition from './index'; // OK const test1: [number[], number[]] = partition([1, 5, 2, 4, 3], n => n > 3); -const test2: [string[], number[]] = partition(['a', 2, 3, '3'], x => typeof x == 'string') as [string[], number[]]; //if you know better than typescript +const test2: [string[], number[]] = partition(['a', 2, 3, '3'], x => typeof x == 'string'); const test3: [number[], number[]] = partition([1, 2, 3, 4], x => typeof x == 'string'); const test4: [unknown[], unknown[]] = partition([], n => n > 3); // [[], []]