@@ -27,6 +27,7 @@ export type AggregateFieldType = AggregateField<number>;
27
27
28
28
// @public
29
29
export class AggregateQuerySnapshot <T extends AggregateSpec > {
30
+ ;
30
31
data(): AggregateSpecData <T >;
31
32
readonly query: Query <unknown >;
32
33
readonly type = " AggregateQuerySnapshot" ;
@@ -54,6 +55,7 @@ export function arrayUnion(...elements: unknown[]): FieldValue;
54
55
55
56
// @public
56
57
export class Bytes {
58
+ ;
57
59
static fromBase64String(base64 : string ): Bytes ;
58
60
static fromUint8Array(array : Uint8Array ): Bytes ;
59
61
isEqual(other : Bytes ): boolean ;
@@ -79,6 +81,7 @@ export function collectionGroup(firestore: Firestore, collectionId: string): Que
79
81
80
82
// @public
81
83
export class CollectionReference <T = DocumentData > extends Query <T > {
84
+ ;
82
85
get id(): string ;
83
86
get parent(): DocumentReference <DocumentData > | null ;
84
87
get path(): string ;
@@ -117,9 +120,11 @@ export function documentId(): FieldPath;
117
120
118
121
// @public
119
122
export class DocumentReference <T = DocumentData > {
123
+ ;
120
124
readonly converter: FirestoreDataConverter <T > | null ;
121
125
readonly firestore: Firestore ;
122
126
get id(): string ;
127
+ ;
123
128
get parent(): CollectionReference <T >;
124
129
get path(): string ;
125
130
readonly type = " document" ;
@@ -129,6 +134,11 @@ export class DocumentReference<T = DocumentData> {
129
134
130
135
// @public
131
136
export class DocumentSnapshot <T = DocumentData > {
137
+ ;
138
+ ;
139
+ ;
140
+ ;
141
+ ;
132
142
protected constructor ();
133
143
data(): T | undefined ;
134
144
exists(): this is QueryDocumentSnapshot <T >;
@@ -153,20 +163,38 @@ export function endBefore(...fieldValues: unknown[]): QueryConstraint;
153
163
154
164
// @public
155
165
export class FieldPath {
166
+ ;
156
167
constructor (... fieldNames : string []);
157
168
isEqual(other : FieldPath ): boolean ;
158
169
}
159
170
160
171
// @public
161
172
export abstract class FieldValue {
173
+ ;
162
174
abstract isEqual(other : FieldValue ): boolean ;
175
+ ;
163
176
}
164
177
165
178
// @public
166
179
export class Firestore {
180
+ ;
181
+ ;
182
+ ;
183
+ ;
184
+ ;
185
+ ;
186
+ ;
187
+ ;
167
188
get app(): FirebaseApp ;
168
189
toJSON(): object ;
190
+ ;
191
+ ;
192
+ ;
193
+ ;
194
+ ;
195
+ ;
169
196
type: ' firestore-lite' | ' firestore' ;
197
+ ;
170
198
}
171
199
172
200
// @public
@@ -188,6 +216,8 @@ export type FirestoreErrorCode = 'cancelled' | 'unknown' | 'invalid-argument' |
188
216
189
217
// @public
190
218
export class GeoPoint {
219
+ ;
220
+ ;
191
221
constructor (latitude : number , longitude : number );
192
222
isEqual(other : GeoPoint ): boolean ;
193
223
get latitude(): number ;
@@ -196,6 +226,7 @@ export class GeoPoint {
196
226
latitude: number ;
197
227
longitude: number ;
198
228
};
229
+ ;
199
230
}
200
231
201
232
// @public
@@ -251,6 +282,7 @@ export type Primitive = string | number | boolean | undefined | null;
251
282
// @public
252
283
export class Query <T = DocumentData > {
253
284
protected constructor ();
285
+ ;
254
286
readonly converter: FirestoreDataConverter <T > | null ;
255
287
readonly firestore: Firestore ;
256
288
readonly type: ' query' | ' collection' ;
@@ -264,6 +296,7 @@ export function query<T>(query: Query<T>, ...queryConstraints: QueryConstraint[]
264
296
// @public
265
297
export abstract class QueryConstraint {
266
298
abstract readonly type: QueryConstraintType ;
299
+ ;
267
300
}
268
301
269
302
// @public
@@ -280,6 +313,7 @@ export function queryEqual<T>(left: Query<T>, right: Query<T>): boolean;
280
313
281
314
// @public
282
315
export class QuerySnapshot <T = DocumentData > {
316
+ ;
283
317
get docs(): Array <QueryDocumentSnapshot <T >>;
284
318
get empty(): boolean ;
285
319
forEach(callback : (result : QueryDocumentSnapshot <T >) => void , thisArg ? : unknown ): void ;
@@ -349,6 +383,7 @@ export class Timestamp {
349
383
static now(): Timestamp ;
350
384
readonly seconds: number ;
351
385
toDate(): Date ;
386
+ ;
352
387
toJSON(): {
353
388
seconds: number ;
354
389
nanoseconds: number ;
@@ -360,6 +395,9 @@ export class Timestamp {
360
395
361
396
// @public
362
397
export class Transaction {
398
+ ;
399
+ ;
400
+ ;
363
401
delete(documentRef : DocumentReference <unknown >): this ;
364
402
get<T >(documentRef : DocumentReference <T >): Promise <DocumentSnapshot <T >>;
365
403
set<T >(documentRef : DocumentReference <T >, data : WithFieldValue <T >): this ;
@@ -400,12 +438,18 @@ export type WithFieldValue<T> = T | (T extends Primitive ? T : T extends {} ? {
400
438
401
439
// @public
402
440
export class WriteBatch {
441
+ ;
442
+ ;
443
+ ;
444
+ ;
445
+ ;
403
446
commit(): Promise <void >;
404
447
delete(documentRef : DocumentReference <unknown >): WriteBatch ;
405
448
set<T >(documentRef : DocumentReference <T >, data : WithFieldValue <T >): WriteBatch ;
406
449
set<T >(documentRef : DocumentReference <T >, data : PartialWithFieldValue <T >, options : SetOptions ): WriteBatch ;
407
450
update<T >(documentRef : DocumentReference <T >, data : UpdateData <T >): WriteBatch ;
408
451
update(documentRef : DocumentReference <unknown >, field : string | FieldPath , value : unknown , ... moreFieldsAndValues : unknown []): WriteBatch ;
452
+ ;
409
453
}
410
454
411
455
// @public
0 commit comments