UNPKG

934 BSource Map (JSON)View Raw
1{"version":3,"file":"patch.js","sourceRoot":"","sources":["../../../src/utils/patch.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAIlC,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,GAAG,EAAE,KAAK;IACV,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,QAAQ;IAChB,GAAG,EAAE,KAAK;IACV,IAAI,EAAE,MAAM;CACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nexport type PatchOperation = ExistingKeyOperation | RemoveOperation;\n\nexport const PatchOperationType = {\n add: \"add\",\n replace: \"replace\",\n remove: \"remove\",\n set: \"set\",\n incr: \"incr\",\n} as const;\n\nexport type ExistingKeyOperation = {\n op: keyof typeof PatchOperationType;\n value: any;\n path: string;\n};\n\nexport type RemoveOperation = {\n op: \"remove\";\n path: string;\n};\n\nexport type PatchRequestBody =\n | {\n operations: PatchOperation[];\n condition?: string;\n }\n | PatchOperation[];\n"]}
\No newline at end of file