Skip to content

Commit 5b0e95b

Browse files
[AUTOMATED]: Prettier Code Styling
1 parent 2cc698e commit 5b0e95b

File tree

1 file changed

+5
-24
lines changed

1 file changed

+5
-24
lines changed

packages/firestore/src/local/indexeddb_schema.ts

Lines changed: 5 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@ export const SCHEMA_VERSION = 2;
2929
* version.
3030
*/
3131
export function createOrUpgradeDb(
32-
db: IDBDatabase,
33-
fromVersion: number,
34-
toVersion: number
32+
db: IDBDatabase,
33+
fromVersion: number,
34+
toVersion: number
3535
): void {
3636
assert(
37-
fromVersion < toVersion && fromVersion >= 0 && toVersion <= 2,
38-
'Unexpected schema upgrade from v${fromVersion} to v{toVersion}.'
37+
fromVersion < toVersion && fromVersion >= 0 && toVersion <= 2,
38+
'Unexpected schema upgrade from v${fromVersion} to v{toVersion}.'
3939
);
4040

4141
if (toVersion === 2) {
@@ -100,21 +100,18 @@ export class DbMutationQueue {
100100
/** Keys are automatically assigned via the userId property. */
101101
static keyPath = 'userId';
102102

103-
104103
constructor(
105104
/**
106105
* @param userId - The normalized user ID to which this queue belongs.
107106
*/
108107
public userId: string,
109-
110108
/**
111109
* @param lastAcknowledgedBatchId - An identifier for the highest numbered
112110
* batch that has been acknowledged by the server. All MutationBatches in
113111
* this queue with batchIds less than or equal to this value are considered
114112
* to have been acknowledged by the server.
115113
*/
116114
public lastAcknowledgedBatchId: number,
117-
118115
/**
119116
* @param lastStreamToken - A stream token that was previously sent by the
120117
* server.
@@ -126,7 +123,6 @@ export class DbMutationQueue {
126123
* only a single stream token is retained.
127124
*/
128125
public lastStreamToken: string,
129-
130126
/**
131127
* @param highestPendingBatchId - An identifier for the highest numbered
132128
* batch in the mutation queue. This allows for efficient insert of new
@@ -160,19 +156,16 @@ export class DbMutationBatch {
160156
* @userId userId - The normalized user ID to which this batch belongs.
161157
*/
162158
public userId: string,
163-
164159
/**
165160
* @batchId batchId - An identifier for this batch, allocated by the
166161
* mutation queue in a monotonically increasing manner.
167162
*/
168163
public batchId: BatchId,
169-
170164
/**
171165
* @param localWriteTimeMs - The local write time of the batch, stored as
172166
* milliseconds since the epoch.
173167
*/
174168
public localWriteTimeMs: number,
175-
176169
/**
177170
* @param mutations - A list of mutations to apply. All mutations will be
178171
* applied atomically.
@@ -291,7 +284,6 @@ export class DbRemoteDocument {
291284
* that no document exists.
292285
*/
293286
public noDocument: DbNoDocument | null,
294-
295287
/**
296288
* @param document - Set to an instance of a Document if there's a cached
297289
* version of the document.
@@ -348,21 +340,18 @@ export class DbTarget {
348340
* indexes) to minimize the on-disk cost.
349341
*/
350342
public targetId: TargetId,
351-
352343
/**
353344
* @param canonicalId - The canonical string representing this query. This
354345
* is not unique.
355346
*/
356347
public canonicalId: string,
357-
358348
/**
359349
* @param readTime - The last readTime received from the Watch Service for
360350
* this query.
361351
*
362352
* This is the same value as TargetChange.read_time in the protos.
363353
*/
364354
public readTime: DbTimestamp,
365-
366355
/**
367356
* @param resumeToken - An opaque, server-assigned token that allows
368357
* watching a query to be resumed after disconnecting without retransmitting
@@ -382,7 +371,6 @@ export class DbTarget {
382371
* This is the same value as TargetChange.resume_token in the protos.
383372
*/
384373
public resumeToken: string,
385-
386374
/**
387375
* @param lastListenSequenceNumber - A sequence number representing the
388376
* last time this query was listened to, used for garbage collection
@@ -399,7 +387,6 @@ export class DbTarget {
399387
* listened to.
400388
*/
401389
public lastListenSequenceNumber: number,
402-
403390
/**
404391
* @param query - The query for this target.
405392
*
@@ -474,15 +461,13 @@ export class DbTargetGlobal {
474461
* See DbTarget.targetId.
475462
*/
476463
public highestTargetId: TargetId,
477-
478464
/**
479465
* @param highestListenSequenceNumber - The highest numbered
480466
* lastListenSequenceNumber across all targets.
481467
*
482468
* See DbTarget.lastListenSequenceNumber.
483469
*/
484470
public highestListenSequenceNumber: number,
485-
486471
/**
487472
* @param lastRemoteSnapshotVersion - A global snapshot version representing
488473
* the last consistent snapshot we received from the backend. This is
@@ -539,12 +524,10 @@ export class DbTargetChange {
539524
* @param targetId - The targetId identifying a target.
540525
*/
541526
public targetId: TargetId,
542-
543527
/**
544528
* @param snapshotVersion - The snapshot version for this change.
545529
*/
546530
public snapshotVersion: DbTimestamp,
547-
548531
/**
549532
* @param changes - The keys of the changed documents in this snapshot.
550533
*/
@@ -578,10 +561,8 @@ export class DbInstanceMetadata {
578561
constructor(
579562
/** userId - The normalized user ID to which this batch belongs.*/
580563
public userId: string,
581-
582564
/** instanceKey - The auto-generated instance key assigned at client startup. */
583565
public instanceKey: string,
584-
585566
/** updateTimeMs - The last time this state was updated. */
586567
public updateTimeMs: DbTimestamp
587568
) {}

0 commit comments

Comments
 (0)