interface DurablePublishKitState {
    hasValue: boolean;
    publishCount: bigint;
    status: "live" | "finished" | "failed";
    value: any;
    valueDurability: DurablePublishKitValueDurability;
}

Properties

hasValue: boolean

hasValue indicates the presence of value. It starts off false, and can be reset to false when a durable publish kit is restored and the previous value was not durable, or non-terminal and valueDurablity is 'ignored'.

publishCount: bigint
status: "live" | "finished" | "failed"
value: any

value holds either a non-terminal value from publish or a terminal value from finish or fail, depending upon the value in status.