File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed
packages/common/src/client/sync Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,11 @@ export interface BucketChecksum {
5050 * Count of operations - informational only.
5151 */
5252 count ?: number ;
53+ /**
54+ * The JavaScript client does not use this field, which is why it's defined to be `any`. We rely on the structure of
55+ * this interface to pass custom `BucketChecksum`s to the Rust client in unit tests, which so all fields need to be
56+ * present.
57+ */
5358 subscriptions ?: any ;
5459}
5560
Original file line number Diff line number Diff line change @@ -86,6 +86,8 @@ export function coreStatusToJs(status: CoreSyncStatus): sync_status.SyncStatusOp
8686 connected : status . connected ,
8787 connecting : status . connecting ,
8888 dataFlow : {
89+ // We expose downloading as a boolean field, the core extension reports download information as a nullable
90+ // download status. When that status is non-null, a download is in progress.
8991 downloading : status . downloading != null ,
9092 downloadProgress : status . downloading ?. buckets ,
9193 internalStreamSubscriptions : status . streams
You can’t perform that action at this time.
0 commit comments