Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

fix type issue

Matheus Nogueira6b0eb7edca96
diff --git a/backend/src/lib/fn/array.ts b/backend/src/lib/fn/array.ts
index 760317bad1..292a883201 100644
--- a/backend/src/lib/fn/array.ts
+++ b/backend/src/lib/fn/array.ts
@@ -74,7 +74,7 @@ export const objectify = <T, Key extends string | number | symbol, Value = T>(
/**
* Chunks an array into smaller arrays of the given size.
*/
-export const chunkArray = <T>(array: T[], chunkSize: number): T[][] => {
+export const chunkArray = <T>(array: readonly T[], chunkSize: number): T[][] => {
const chunks: T[][] = [];
for (let i = 0; i < array.length; i += chunkSize) {
chunks.push(array.slice(i, i + chunkSize));