@mondaydotcomorg/atp-compiler
Version:
Production-ready compiler for transforming async iteration patterns into resumable operations with checkpoint-based state management
26 lines • 1.24 kB
TypeScript
import * as t from '@babel/types';
/**
* Wrap batch result with post-processing for filter()
* Filter must return filtered ITEMS, not boolean results
*/
export declare function wrapFilterResult(batchCall: t.AwaitExpression, array: t.Expression, methodId: string): t.Expression;
/**
* Wrap batch result with post-processing for find()
* Find must return first matching ITEM (not boolean)
*/
export declare function wrapFindResult(batchCall: t.AwaitExpression, array: t.Expression, methodId: string): t.Expression;
/**
* Wrap batch result with post-processing for some()
* Some must return boolean: true if ANY result is truthy
*/
export declare function wrapSomeResult(batchCall: t.AwaitExpression, methodId: string): t.Expression;
/**
* Wrap batch result with post-processing for every()
* Every must return boolean: true if ALL results are truthy
*/
export declare function wrapEveryResult(batchCall: t.AwaitExpression, methodId: string): t.Expression;
/**
* Wrap batch result if method needs post-processing
*/
export declare function wrapBatchResultIfNeeded(batchCall: t.AwaitExpression, methodName: string, array: t.Expression, methodId: string): t.Expression;
//# sourceMappingURL=array-transformer-wrappers.d.ts.map