KvWrite type

A write in a kvCommit: a put, or a delete. expectedRevision is the revision the writer read (0 = the key must not exist); absent = unconditional.

Signature:

export type KvWrite = {
    key: string;
    value: string;
    expectedRevision?: number;
} | {
    key: string;
    delete: true;
    expectedRevision?: number;
};