arela
Version:
AI-powered CTO with multi-agent orchestration, code summarization, visual testing (web + mobile) for blazing fast development.
16 lines • 704 B
TypeScript
export type SchemaChangeType = "removed-field" | "changed-type";
export interface SchemaChange {
type: SchemaChangeType;
field: string;
oldValue: string;
newValue: string;
severity: "critical" | "major" | "minor";
}
/**
* Compare two schemas and capture breaking field-level changes.
*/
export declare function compareSchemas(current: SchemaObject | undefined, previous: SchemaObject | undefined, parentField?: string): SchemaChange[];
export type SchemaObject = Record<string, any>;
export declare function resolveType(schema?: SchemaObject): string | undefined;
export declare function describeSchema(schema?: SchemaObject): string;
//# sourceMappingURL=schema-comparator.d.ts.map