UNPKG

@mondaydotcomorg/atp-compiler

Version:

Production-ready compiler for transforming async iteration patterns into resumable operations with checkpoint-based state management

9 lines 1.32 kB
export declare function resumableMap<T, R>(items: T[], callback: (item: T, index: number, array: T[]) => Promise<R>, mapId: string): Promise<R[]>; export declare function resumableForEach<T>(items: T[], callback: (item: T, index: number, array: T[]) => Promise<void>, forEachId: string): Promise<void>; export declare function resumableFilter<T>(items: T[], callback: (item: T, index: number, array: T[]) => Promise<boolean>, filterId: string): Promise<T[]>; export declare function resumableReduce<T, R>(items: T[], callback: (accumulator: R, item: T, index: number, array: T[]) => Promise<R>, initialValue: R, reduceId: string): Promise<R>; export declare function resumableFind<T>(items: T[], callback: (item: T, index: number, array: T[]) => Promise<boolean>, findId: string): Promise<T | undefined>; export declare function resumableSome<T>(items: T[], callback: (item: T, index: number, array: T[]) => Promise<boolean>, someId: string): Promise<boolean>; export declare function resumableEvery<T>(items: T[], callback: (item: T, index: number, array: T[]) => Promise<boolean>, everyId: string): Promise<boolean>; export declare function resumableFlatMap<T, R>(items: T[], callback: (item: T, index: number, array: T[]) => Promise<R[]>, flatMapId: string): Promise<R[]>; //# sourceMappingURL=resumable-arrays.d.ts.map