@@ -34,7 +34,7 @@ export class SyncStatus {
3434
3535 /**
3636 * Indicates if the client is currently connected to the PowerSync service.
37- *
37+ *
3838 * @returns {boolean } True if connected, false otherwise. Defaults to false if not specified.
3939 */
4040 get connected ( ) {
@@ -43,7 +43,7 @@ export class SyncStatus {
4343
4444 /**
4545 * Indicates if the client is in the process of establishing a connection to the PowerSync service.
46- *
46+ *
4747 * @returns {boolean } True if connecting, false otherwise. Defaults to false if not specified.
4848 */
4949 get connecting ( ) {
@@ -53,7 +53,7 @@ export class SyncStatus {
5353 /**
5454 * Time that a last sync has fully completed, if any.
5555 * This timestamp is reset to null after a restart of the PowerSync service.
56- *
56+ *
5757 * @returns {Date | undefined } The timestamp of the last successful sync, or undefined if no sync has completed.
5858 */
5959 get lastSyncedAt ( ) {
@@ -62,7 +62,7 @@ export class SyncStatus {
6262
6363 /**
6464 * Indicates whether there has been at least one full sync completed since initialization.
65- *
65+ *
6666 * @returns {boolean | undefined } True if at least one sync has completed, false if no sync has completed,
6767 * or undefined when the state is still being loaded from the database.
6868 */
@@ -72,7 +72,7 @@ export class SyncStatus {
7272
7373 /**
7474 * Provides the current data flow status regarding uploads and downloads.
75- *
75+ *
7676 * @returns {SyncDataFlowStatus } An object containing:
7777 * - downloading: True if actively downloading changes (only when connected is also true)
7878 * - uploading: True if actively uploading changes
@@ -96,7 +96,7 @@ export class SyncStatus {
9696
9797 /**
9898 * Provides sync status information for all bucket priorities, sorted by priority (highest first).
99- *
99+ *
100100 * @returns {SyncPriorityStatus[] } An array of status entries for different sync priority levels,
101101 * sorted with highest priorities (lower numbers) first.
102102 */
@@ -105,18 +105,18 @@ export class SyncStatus {
105105 }
106106
107107 /**
108- * Reports the sync status (a pair of {@link SyncStatus#hasSynced} and {@link SyncStatus#lastSyncedAt} fields)
108+ * Reports the sync status (a pair of {@link SyncStatus#hasSynced} and {@link SyncStatus#lastSyncedAt} fields)
109109 * for a specific bucket priority level.
110- *
110+ *
111111 * When buckets with different priorities are declared, PowerSync may choose to synchronize higher-priority
112112 * buckets first. When a consistent view over all buckets for all priorities up until the given priority is
113113 * reached, PowerSync makes data from those buckets available before lower-priority buckets have finished
114114 * syncing.
115- *
116- * This method returns the status for the requested priority or the next higher priority level that has
117- * status information available. This is because when PowerSync makes data for a given priority available,
115+ *
116+ * This method returns the status for the requested priority or the next higher priority level that has
117+ * status information available. This is because when PowerSync makes data for a given priority available,
118118 * all buckets in higher-priorities are guaranteed to be consistent with that checkpoint.
119- *
119+ *
120120 * For example, if PowerSync just finished synchronizing buckets in priority level 3, calling this method
121121 * with a priority of 1 may return information for priority level 3.
122122 *
@@ -143,7 +143,7 @@ export class SyncStatus {
143143 /**
144144 * Compares this SyncStatus instance with another to determine if they are equal.
145145 * Equality is determined by comparing the serialized JSON representation of both instances.
146- *
146+ *
147147 * @param {SyncStatus } status The SyncStatus instance to compare against
148148 * @returns {boolean } True if the instances are considered equal, false otherwise
149149 */
@@ -154,7 +154,7 @@ export class SyncStatus {
154154 /**
155155 * Creates a human-readable string representation of the current sync status.
156156 * Includes information about connection state, sync completion, and data flow.
157- *
157+ *
158158 * @returns {string } A string representation of the sync status
159159 */
160160 getMessage ( ) {
@@ -164,7 +164,7 @@ export class SyncStatus {
164164
165165 /**
166166 * Serializes the SyncStatus instance to a plain object.
167- *
167+ *
168168 * @returns {SyncStatusOptions } A plain object representation of the sync status
169169 */
170170 toJSON ( ) : SyncStatusOptions {
0 commit comments