UNPKG

598 BTypeScriptView Raw
1export declare type RecursivePartial<T> = {
2 [P in keyof T]?: T[P] extends Array<infer U> ? Array<RecursivePartial<U>> : T[P] extends object ? RecursivePartial<T[P]> : T[P];
3};
4export declare type JSONPatchElement = {
5 op: "replace";
6 path: string;
7 value: any;
8} | {
9 op: "add";
10 path: string;
11 value: any;
12} | {
13 op: "remove";
14 path: string;
15} | {
16 op: "copy";
17 path: string;
18 from: string;
19} | {
20 op: "move";
21 path: string;
22 from: string;
23} | {
24 op: "test";
25 path: string;
26 value: any;
27};
28export declare type JSONPatch = JSONPatchElement[];