diff --git a/packages/array-partition/index.tests.ts b/packages/array-partition/index.tests.ts index 2dd9706c..ca593bab 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); // [[], []]