Skip to content

Commit

Permalink
🔧 fix typings
Browse files Browse the repository at this point in the history
  • Loading branch information
Asing1001 committed Aug 4, 2023
1 parent c084906 commit 8bd6848
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/helper/chunk.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export function chunk(items: any[], size: number) {
const chunks = [];
export function chunk<T>(items: T[], size: number): T[][] {
const chunks: T[][] = [];
for (let i = 0; i < items.length; i += size) {
chunks.push(items.slice(i, i + size));
}
Expand Down

0 comments on commit 8bd6848

Please sign in to comment.