diff --git a/packages/array-partition/index.d.ts b/packages/array-partition/index.d.ts index d6d8e6597..906466946 100644 --- a/packages/array-partition/index.d.ts +++ b/packages/array-partition/index.d.ts @@ -11,4 +11,6 @@ * partition(['a', 1, 2, 'b'], x => typeof x == 'string'); * // => [['a', 'b'], [1, 2]] */ -export default function partition(arr: T[], resolver: (arg: T) => boolean): [T[], T[]] +declare function partition(arr: T[], resolver: (arg: T) => arg is S): [S[], Exclude[]]; +declare function partition(arr: T[], resolver: (arg: T) => boolean): [T[], T[]] +export default partition;