UNPKG

622 BTypeScriptView Raw
1export declare type PatchOperation = ExistingKeyOperation | RemoveOperation;
2export declare const PatchOperationType: {
3 readonly add: "add";
4 readonly replace: "replace";
5 readonly remove: "remove";
6 readonly set: "set";
7 readonly incr: "incr";
8};
9export declare type ExistingKeyOperation = {
10 op: keyof typeof PatchOperationType;
11 value: any;
12 path: string;
13};
14export declare type RemoveOperation = {
15 op: "remove";
16 path: string;
17};
18export declare type PatchRequestBody = {
19 operations: PatchOperation[];
20 condition?: string;
21} | PatchOperation[];
22//# sourceMappingURL=patch.d.ts.map
\No newline at end of file