From b8083cc0e423c764c0ad6a21be72dacc5f15fbd5 Mon Sep 17 00:00:00 2001 From: fewensa Date: Tue, 31 Oct 2023 16:40:12 +0000 Subject: [PATCH] fix syntax --- packages/indexer/src/toolkit/collection.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/indexer/src/toolkit/collection.ts b/packages/indexer/src/toolkit/collection.ts index 42d6b3c..10e4d2c 100644 --- a/packages/indexer/src/toolkit/collection.ts +++ b/packages/indexer/src/toolkit/collection.ts @@ -1,5 +1,5 @@ export class CollectionKit { - public static parts(array: T[], part = 1): T[] { + public static parts(array: T[], part = 1): T[][] { const rets = []; const length = array.length; const size = Math.floor(length / part); @@ -20,7 +20,7 @@ export class CollectionKit { return rets; } - public static split(array: T[], size = 10): T[] { + public static split(array: T[], size = 10): T[][] { const rets = []; const length = array.length; let start = 0, end = size;