import { Path } from '../parent/pathTypes'; export type Patch = PatchAddOperation | PatchRemoveOperation | PatchReplaceOperation; export interface PatchBaseOperation { path: Path; } export interface PatchAddOperation extends PatchBaseOperation { op: "add"; value: T; } export interface PatchRemoveOperation extends PatchBaseOperation { op: "remove"; } export interface PatchReplaceOperation extends PatchBaseOperation { op: "replace"; value: T; }