UNPKG

nx

Version:

The core Nx plugin contains the core functionality of Nx like the project graph, nx commands and task orchestration.

19 lines (18 loc) 676 B
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;