UNPKG

@diullei/codeguardian

Version:

Open-source developer tool to validate and enforce architectural rules, especially for AI-generated code

13 lines 586 B
import { AssertionRule } from '../core'; import { EvaluationContext, ComparisonOperator } from '../types'; export declare class AssertPropertyRule extends AssertionRule { private propertyPath; private expectedValue; private operator; private extractPattern?; constructor(id: string, propertyPath: string, expectedValue: any, operator?: ComparisonOperator, extractPattern?: RegExp | undefined); assert(item: any, _context: EvaluationContext): Promise<boolean>; private getNestedProperty; private compare; } //# sourceMappingURL=AssertPropertyRule.d.ts.map