@@ -42,7 +42,7 @@ export class SyncStatus {
4242
4343 /**
4444 * Indicates if the client is currently connected to the PowerSync service.
45- *
45+ *
4646 * @returns {boolean } True if connected, false otherwise. Defaults to false if not specified.
4747 */
4848 get connected ( ) {
@@ -51,7 +51,7 @@ export class SyncStatus {
5151
5252 /**
5353 * Indicates if the client is in the process of establishing a connection to the PowerSync service.
54- *
54+ *
5555 * @returns {boolean } True if connecting, false otherwise. Defaults to false if not specified.
5656 */
5757 get connecting ( ) {
@@ -61,7 +61,7 @@ export class SyncStatus {
6161 /**
6262 * Time that a last sync has fully completed, if any.
6363 * This timestamp is reset to null after a restart of the PowerSync service.
64- *
64+ *
6565 * @returns {Date | undefined } The timestamp of the last successful sync, or undefined if no sync has completed.
6666 */
6767 get lastSyncedAt ( ) {
@@ -70,7 +70,7 @@ export class SyncStatus {
7070
7171 /**
7272 * Indicates whether there has been at least one full sync completed since initialization.
73- *
73+ *
7474 * @returns {boolean | undefined } True if at least one sync has completed, false if no sync has completed,
7575 * or undefined when the state is still being loaded from the database.
7676 */
@@ -80,7 +80,7 @@ export class SyncStatus {
8080
8181 /**
8282 * Provides the current data flow status regarding uploads and downloads.
83- *
83+ *
8484 * @returns {SyncDataFlowStatus } An object containing:
8585 * - downloading: True if actively downloading changes (only when connected is also true)
8686 * - uploading: True if actively uploading changes
@@ -104,7 +104,7 @@ export class SyncStatus {
104104
105105 /**
106106 * Provides sync status information for all bucket priorities, sorted by priority (highest first).
107- *
107+ *
108108 * @returns {SyncPriorityStatus[] } An array of status entries for different sync priority levels,
109109 * sorted with highest priorities (lower numbers) first.
110110 */
@@ -128,18 +128,18 @@ export class SyncStatus {
128128 }
129129
130130 /**
131- * Reports the sync status (a pair of {@link SyncStatus#hasSynced} and {@link SyncStatus#lastSyncedAt} fields)
131+ * Reports the sync status (a pair of {@link SyncStatus#hasSynced} and {@link SyncStatus#lastSyncedAt} fields)
132132 * for a specific bucket priority level.
133- *
133+ *
134134 * When buckets with different priorities are declared, PowerSync may choose to synchronize higher-priority
135135 * buckets first. When a consistent view over all buckets for all priorities up until the given priority is
136136 * reached, PowerSync makes data from those buckets available before lower-priority buckets have finished
137137 * syncing.
138- *
139- * This method returns the status for the requested priority or the next higher priority level that has
140- * status information available. This is because when PowerSync makes data for a given priority available,
138+ *
139+ * This method returns the status for the requested priority or the next higher priority level that has
140+ * status information available. This is because when PowerSync makes data for a given priority available,
141141 * all buckets in higher-priorities are guaranteed to be consistent with that checkpoint.
142- *
142+ *
143143 * For example, if PowerSync just finished synchronizing buckets in priority level 3, calling this method
144144 * with a priority of 1 may return information for priority level 3.
145145 *
@@ -166,7 +166,7 @@ export class SyncStatus {
166166 /**
167167 * Compares this SyncStatus instance with another to determine if they are equal.
168168 * Equality is determined by comparing the serialized JSON representation of both instances.
169- *
169+ *
170170 * @param {SyncStatus } status The SyncStatus instance to compare against
171171 * @returns {boolean } True if the instances are considered equal, false otherwise
172172 */
@@ -177,7 +177,7 @@ export class SyncStatus {
177177 /**
178178 * Creates a human-readable string representation of the current sync status.
179179 * Includes information about connection state, sync completion, and data flow.
180- *
180+ *
181181 * @returns {string } A string representation of the sync status
182182 */
183183 getMessage ( ) {
@@ -187,7 +187,7 @@ export class SyncStatus {
187187
188188 /**
189189 * Serializes the SyncStatus instance to a plain object.
190- *
190+ *
191191 * @returns {SyncStatusOptions } A plain object representation of the sync status
192192 */
193193 toJSON ( ) : SyncStatusOptions {
0 commit comments