UNPKG

@tmlmobilidade/utils

Version:

A collection of utility functions and helpers for the TML Mobilidade Go monorepo, providing common functionality for batching operations, caching, HTTP requests, object manipulation, permissions, and more.

8 lines (7 loc) 385 B
/** * Performs an operation on large array of data in chunks. * @param data The data to be processed in chunks. * @param operation The operation to be performed on each chunk of data. * @param chunkSize The size of each chunk. Defaults to 5000. */ export declare function performInChunks<T>(data: T[], operation: (chunk: T[]) => Promise<void>, chunkSize?: number): Promise<void>;