@mondaydotcomorg/atp-compiler
Version:
Production-ready compiler for transforming async iteration patterns into resumable operations with checkpoint-based state management
40 lines • 1.22 kB
TypeScript
/**
* Factory function to create a PluggableCompiler with all default plugins
*
* This makes PluggableCompiler a drop-in replacement for ATPCompiler
*/
import { PluggableCompiler } from './pluggable-compiler.js';
import type { CompilerConfig } from '../types.js';
/**
* Create a PluggableCompiler with all default ATP transformations
*
* This provides the same functionality as ATPCompiler but with plugin extensibility.
*
* @example
* ```typescript
* // Drop-in replacement for ATPCompiler
* const compiler = createDefaultCompiler({
* enableBatchParallel: true,
* maxBatchSize: 10,
* });
*
* // Works exactly like ATPCompiler
* const result = await compiler.transform(code);
*
* // But you can also add custom plugins!
* compiler.use(myCustomPlugin);
* ```
*/
export declare function createDefaultCompiler(config?: Partial<CompilerConfig>): PluggableCompiler;
/**
* Type alias for backward compatibility
*
* This allows:
* ```typescript
* import type { ATPCompilerLike } from '@mondaydotcomorg/atp-compiler';
*
* const compiler: ATPCompilerLike = createDefaultCompiler();
* ```
*/
export type ATPCompilerLike = PluggableCompiler;
//# sourceMappingURL=create-default-compiler.d.ts.map