UNPKG

@mondaydotcomorg/atp-compiler

Version:

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

31 lines 1.09 kB
/** * Example: Loop Transformer as a Plugin * * Shows how to migrate existing LoopTransformer to plugin architecture * This demonstrates the migration path for built-in transformers */ import type { TransformationPlugin, BabelVisitor } from '../plugin-api.js'; import type { CompilerConfig, TransformMetadata } from '../../types.js'; /** * Loop Transformer Plugin * * Transforms for...of, while, and for loops into resumable versions * with checkpoint-based state management */ export declare class LoopTransformerPlugin implements TransformationPlugin { name: string; version: string; priority: number; private transformer; constructor(batchSizeThreshold?: number); initialize(config: CompilerConfig): void; getVisitor(config: CompilerConfig): BabelVisitor; getMetadata(): Partial<TransformMetadata>; reset(): void; dispose(): void; } /** * Factory function for easy creation */ export declare function createLoopTransformerPlugin(batchSizeThreshold?: number): LoopTransformerPlugin; //# sourceMappingURL=loop-transformer-plugin.d.ts.map