Skip to main content
Version: v1

RefreshSummaryResult TypeAlias

Return value of refreshSummaryAck function. There can be three different scenarios based on the passed params: 1. The latest summary was not udpated. 2. The latest summary was updated and the summary corresponding to the params was tracked by this client. 3. The latest summary was updated but the summary corresponding to the params was not tracked. In this case, the latest summary is updated based on the downloaded snapshot which is also returned.

Signature

export declare type RefreshSummaryResult = {
latestSummaryUpdated: false;
} | {
latestSummaryUpdated: true;
wasSummaryTracked: true;
} | {
latestSummaryUpdated: true;
wasSummaryTracked: false;
snapshot: ISnapshotTree;
};