1 | export declare type IJsonPatch = {
|
2 | op: "replace" | "add" | "remove";
|
3 | path: string;
|
4 | value?: any;
|
5 | };
|
6 | export declare type IReversibleJsonPatch = IJsonPatch & {
|
7 | oldValue: any;
|
8 | };
|
9 | export declare function splitPatch(patch: IReversibleJsonPatch): [IJsonPatch, IJsonPatch];
|
10 | export declare function stripPatch(patch: IReversibleJsonPatch): IJsonPatch;
|
11 |
|
12 |
|
13 |
|
14 |
|
15 | export declare function escapeJsonPath(str: string): string;
|
16 |
|
17 |
|
18 |
|
19 | export declare function unescapeJsonPath(str: string): string;
|
20 | export declare function joinJsonPath(path: string[]): string;
|
21 | export declare function splitJsonPath(path: string): string[];
|