@mondaydotcomorg/atp-compiler
Version:
Production-ready compiler for transforming async iteration patterns into resumable operations with checkpoint-based state management
18 lines • 546 B
JavaScript
/**
* Core compiler interface for ATP
* All ATP compilers must implement this interface to ensure consistency
*/
/**
* Type guard to check if an object implements ICompiler
*/
export function isCompiler(obj) {
return (typeof obj === 'object' &&
obj !== null &&
'detect' in obj &&
'transform' in obj &&
'getType' in obj &&
typeof obj.detect === 'function' &&
typeof obj.transform === 'function' &&
typeof obj.getType === 'function');
}
//# sourceMappingURL=compiler-interface.js.map