@web3-storage/pail
Version:
DAG based key value store.
13 lines • 566 B
TypeScript
export function difference(blocks: API.BlockFetcher, a: API.ShardLink, b: API.ShardLink): Promise<CombinedDiff>;
export type K = string;
export type AddV = [before: null, after: API.UnknownLink];
export type UpdateV = [before: API.UnknownLink, after: API.UnknownLink];
export type DeleteV = [before: API.UnknownLink, after: null];
export type KV = [key: K, value: AddV | UpdateV | DeleteV];
export type KeysDiff = KV[];
export type CombinedDiff = {
keys: KeysDiff;
shards: API.ShardDiff;
};
import * as API from './api.js';
//# sourceMappingURL=diff.d.ts.map