Skip to content

Commit ae956b1

Browse files
committed
[AUTOMATED]: Prettier Code Styling
1 parent 0a7a24f commit ae956b1

File tree

1 file changed

+37
-39
lines changed

1 file changed

+37
-39
lines changed

packages/firestore-types/index.d.ts

Lines changed: 37 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -42,40 +42,40 @@ export function setLogLevel(logLevel: LogLevel): void;
4242

4343
export class FirebaseFirestore {
4444
private constructor();
45-
45+
4646
settings(settings: Settings): void;
47-
47+
4848
enablePersistence(settings?: PersistenceSettings): Promise<void>;
49-
49+
5050
collection(collectionPath: string): CollectionReference;
51-
51+
5252
doc(documentPath: string): DocumentReference;
53-
53+
5454
collectionGroup(collectionId: string): Query;
55-
55+
5656
runTransaction<T>(
5757
updateFunction: (transaction: Transaction) => Promise<T>
5858
): Promise<T>;
59-
59+
6060
batch(): WriteBatch;
61-
61+
6262
app: any;
63-
63+
6464
clearPersistence(): Promise<void>;
65-
65+
6666
enableNetwork(): Promise<void>;
67-
67+
6868
disableNetwork(): Promise<void>;
69-
69+
7070
waitForPendingWrites(): Promise<void>;
71-
71+
7272
onSnapshotsInSync(observer: {
7373
next?: (value: void) => void;
7474
error?: (error: Error) => void;
7575
complete?: () => void;
7676
}): () => void;
7777
onSnapshotsInSync(onSync: () => void): () => void;
78-
78+
7979
terminate(): Promise<void>;
8080

8181
INTERNAL: { delete: () => Promise<void> };
@@ -86,26 +86,26 @@ export class GeoPoint {
8686

8787
readonly latitude: number;
8888
readonly longitude: number;
89-
89+
9090
isEqual(other: GeoPoint): boolean;
9191
}
9292

9393
export class Timestamp {
9494
constructor(seconds: number, nanoseconds: number);
95-
95+
9696
static now(): Timestamp;
97-
97+
9898
static fromDate(date: Date): Timestamp;
99-
99+
100100
static fromMillis(milliseconds: number): Timestamp;
101101

102102
readonly seconds: number;
103103
readonly nanoseconds: number;
104104

105105
toDate(): Date;
106-
106+
107107
toMillis(): number;
108-
108+
109109
isEqual(other: Timestamp): boolean;
110110
}
111111

@@ -119,7 +119,7 @@ export class Blob {
119119
public toBase64(): string;
120120

121121
public toUint8Array(): Uint8Array;
122-
122+
123123
isEqual(other: Blob): boolean;
124124
}
125125

@@ -133,7 +133,7 @@ export class Transaction {
133133
data: DocumentData,
134134
options?: SetOptions
135135
): Transaction;
136-
136+
137137
update(documentRef: DocumentReference, data: UpdateData): Transaction;
138138
update(
139139
documentRef: DocumentReference,
@@ -142,7 +142,6 @@ export class Transaction {
142142
...moreFieldsAndValues: any[]
143143
): Transaction;
144144

145-
146145
delete(documentRef: DocumentReference): Transaction;
147146
}
148147

@@ -162,9 +161,9 @@ export class WriteBatch {
162161
value: any,
163162
...moreFieldsAndValues: any[]
164163
): WriteBatch;
165-
164+
166165
delete(documentRef: DocumentReference): WriteBatch;
167-
166+
168167
commit(): Promise<void>;
169168
}
170169

@@ -294,14 +293,13 @@ export class Query {
294293

295294
startAt(snapshot: DocumentSnapshot): Query;
296295
startAt(...fieldValues: any[]): Query;
297-
296+
298297
startAfter(snapshot: DocumentSnapshot): Query;
299298
startAfter(...fieldValues: any[]): Query;
300299

301300
endBefore(snapshot: DocumentSnapshot): Query;
302301
endBefore(...fieldValues: any[]): Query;
303302

304-
305303
endAt(snapshot: DocumentSnapshot): Query;
306304
endAt(...fieldValues: any[]): Query;
307305

@@ -365,39 +363,39 @@ export interface DocumentChange {
365363

366364
export class CollectionReference extends Query {
367365
private constructor();
368-
366+
369367
readonly id: string;
370368
readonly parent: DocumentReference | null;
371369
readonly path: string;
372-
370+
373371
doc(documentPath?: string): DocumentReference;
374-
372+
375373
add(data: DocumentData): Promise<DocumentReference>;
376-
374+
377375
isEqual(other: CollectionReference): boolean;
378376
}
379377

380378
export class FieldValue {
381379
private constructor();
382-
380+
383381
static serverTimestamp(): FieldValue;
384-
382+
385383
static delete(): FieldValue;
386-
384+
387385
static arrayUnion(...elements: any[]): FieldValue;
388-
386+
389387
static arrayRemove(...elements: any[]): FieldValue;
390-
388+
391389
static increment(n: number): FieldValue;
392-
390+
393391
isEqual(other: FieldValue): boolean;
394392
}
395393

396394
export class FieldPath {
397395
constructor(...fieldNames: string[]);
398-
396+
399397
static documentId(): FieldPath;
400-
398+
401399
isEqual(other: FieldPath): boolean;
402400
}
403401

0 commit comments

Comments
 (0)