Skip to content

Documentation / @warp-drive/core-types / cache / RelationshipDiff

Type Alias: RelationshipDiff

ts
type RelationshipDiff = 
  | {
  additions: Set<ResourceKey>;
  kind: "collection";
  localState: ResourceKey[];
  remoteState: ResourceKey[];
  removals: Set<ResourceKey>;
  reordered: boolean;
}
  | {
  kind: "resource";
  localState: ResourceKey | null;
  remoteState: ResourceKey | null;
};

Defined in: warp-drive-packages/core/declarations/types/cache.d.ts:18

Released under the MIT License.