UNPKG

@squidcloud/client

Version:

A typescript implementation of the Squid client

8 lines (7 loc) 391 B
export declare function truncateOrPadArray(arr: number[], length: number): number[]; /** * Computes a single “recommended” chunk size so that if you loop * `for (let i = 0; i < length; i += chunkSize)`, * no slice will exceed `maxChunkSize` and all chunk sizes are 'almost' equal. */ export declare function computeRecommendedChunkSize(length: number, maxChunkSize: number): number;