nx
Version:
19 lines (18 loc) • 676 B
TypeScript
import { Change } from '../project-graph/file-utils';
export declare enum JsonDiffType {
Deleted = "JsonPropertyDeleted",
Added = "JsonPropertyAdded",
Modified = "JsonPropertyModified"
}
export interface JsonChange extends Change {
type: JsonDiffType;
path: string[];
value: {
lhs: any;
rhs: any;
};
}
export declare function isJsonChange(change: Change): change is JsonChange;
export declare function jsonDiff(lhs: any, rhs: any): JsonChange[];
export declare function walkJsonTree(json: any, currPath: string[], visitor: (path: string[], value: any) => boolean): void;
export declare function deepEquals(a: any, b: any): boolean;