@@ -163,7 +163,8 @@ export function documentId(): FieldPath;
163
163
export class DocumentReference <AppModelType = DocumentData , DbModelType extends DocumentData = DocumentData > {
164
164
readonly converter: FirestoreDataConverter <AppModelType , DbModelType > | null ;
165
165
readonly firestore: Firestore ;
166
- static fromJSON<NewAppModelType = DocumentData , NewDbModelType extends DocumentData = DocumentData >(firestore : Firestore , json : object , converter ? : FirestoreDataConverter <NewAppModelType , NewDbModelType >): DocumentReference <NewAppModelType , NewDbModelType >;
166
+ static fromJSON(firestore : Firestore , json : object ): DocumentReference ;
167
+ static fromJSON<NewAppModelType = DocumentData , NewDbModelType extends DocumentData = DocumentData >(firestore : Firestore , json : object , converter : FirestoreDataConverter <NewAppModelType , NewDbModelType >): DocumentReference <NewAppModelType , NewDbModelType >;
167
168
get id(): string ;
168
169
get parent(): CollectionReference <AppModelType , DbModelType >;
169
170
get path(): string ;
@@ -182,10 +183,15 @@ export class DocumentSnapshot<AppModelType = DocumentData, DbModelType extends D
182
183
get id(): string ;
183
184
readonly metadata: SnapshotMetadata ;
184
185
get ref(): DocumentReference <AppModelType , DbModelType >;
185
- // (undocumented)
186
186
toJSON(): object ;
187
187
}
188
188
189
+ // @public
190
+ export function documentSnapshotFromJSON(db : Firestore , json : object ): DocumentSnapshot ;
191
+
192
+ // @public
193
+ export function documentSnapshotFromJSON<AppModelType , DbModelType extends DocumentData = DocumentData >(db : Firestore , json : object , converter : FirestoreDataConverter <AppModelType , DbModelType >): DocumentSnapshot <AppModelType , DbModelType >;
194
+
189
195
export { EmulatorMockTokenOptions }
190
196
191
197
// @public @deprecated
@@ -468,40 +474,40 @@ export function onSnapshot<AppModelType, DbModelType extends DocumentData>(query
468
474
export function onSnapshot<AppModelType , DbModelType extends DocumentData >(query : Query <AppModelType , DbModelType >, options : SnapshotListenOptions , onNext : (snapshot : QuerySnapshot <AppModelType , DbModelType >) => void , onError ? : (error : FirestoreError ) => void , onCompletion ? : () => void ): Unsubscribe ;
469
475
470
476
// @public
471
- export function onSnapshot <AppModelType , DbModelType extends DocumentData >(firestore : Firestore , snapshotJson : object , onNext : (snapshot : QuerySnapshot <AppModelType , DbModelType >) => void , onError ? : (error : FirestoreError ) => void , onCompletion ? : () => void , converter ? : FirestoreDataConverter <DbModelType >): Unsubscribe ;
477
+ export function onSnapshotResume <AppModelType , DbModelType extends DocumentData >(firestore : Firestore , snapshotJson : object , onNext : (snapshot : QuerySnapshot <AppModelType , DbModelType >) => void , onError ? : (error : FirestoreError ) => void , onCompletion ? : () => void , converter ? : FirestoreDataConverter <DbModelType >): Unsubscribe ;
472
478
473
479
// @public
474
- export function onSnapshot <AppModelType , DbModelType extends DocumentData >(firestore : Firestore , snapshotJson : object , onNext : (snapshot : DocumentSnapshot <AppModelType , DbModelType >) => void , onError ? : (error : FirestoreError ) => void , onCompletion ? : () => void , converter ? : FirestoreDataConverter <DbModelType >): Unsubscribe ;
480
+ export function onSnapshotResume <AppModelType , DbModelType extends DocumentData >(firestore : Firestore , snapshotJson : object , onNext : (snapshot : DocumentSnapshot <AppModelType , DbModelType >) => void , onError ? : (error : FirestoreError ) => void , onCompletion ? : () => void , converter ? : FirestoreDataConverter <DbModelType >): Unsubscribe ;
475
481
476
482
// @public
477
- export function onSnapshot <AppModelType , DbModelType extends DocumentData >(firestore : Firestore , snapshotJson : object , options : SnapshotListenOptions , onNext : (snapshot : QuerySnapshot <AppModelType , DbModelType >) => void , onError ? : (error : FirestoreError ) => void , onCompletion ? : () => void , converter ? : FirestoreDataConverter <DbModelType >): Unsubscribe ;
483
+ export function onSnapshotResume <AppModelType , DbModelType extends DocumentData >(firestore : Firestore , snapshotJson : object , options : SnapshotListenOptions , onNext : (snapshot : QuerySnapshot <AppModelType , DbModelType >) => void , onError ? : (error : FirestoreError ) => void , onCompletion ? : () => void , converter ? : FirestoreDataConverter <DbModelType >): Unsubscribe ;
478
484
479
485
// @public
480
- export function onSnapshot <AppModelType , DbModelType extends DocumentData >(firestore : Firestore , snapshotJson : object , options : SnapshotListenOptions , onNext : (snapshot : DocumentSnapshot <AppModelType , DbModelType >) => void , onError ? : (error : FirestoreError ) => void , onCompletion ? : () => void , converter ? : FirestoreDataConverter <DbModelType >): Unsubscribe ;
486
+ export function onSnapshotResume <AppModelType , DbModelType extends DocumentData >(firestore : Firestore , snapshotJson : object , options : SnapshotListenOptions , onNext : (snapshot : DocumentSnapshot <AppModelType , DbModelType >) => void , onError ? : (error : FirestoreError ) => void , onCompletion ? : () => void , converter ? : FirestoreDataConverter <DbModelType >): Unsubscribe ;
481
487
482
488
// @public
483
- export function onSnapshot <AppModelType , DbModelType extends DocumentData >(firestore : Firestore , snapshotJson : object , observer : {
489
+ export function onSnapshotResume <AppModelType , DbModelType extends DocumentData >(firestore : Firestore , snapshotJson : object , observer : {
484
490
next: (snapshot : QuerySnapshot <AppModelType , DbModelType >) => void ;
485
491
error? : (error : FirestoreError ) => void ;
486
492
complete? : () => void ;
487
493
}, converter ? : FirestoreDataConverter <DbModelType >): Unsubscribe ;
488
494
489
495
// @public
490
- export function onSnapshot <AppModelType , DbModelType extends DocumentData >(firestore : Firestore , snapshotJson : object , observer : {
496
+ export function onSnapshotResume <AppModelType , DbModelType extends DocumentData >(firestore : Firestore , snapshotJson : object , observer : {
491
497
next: (snapshot : DocumentSnapshot <AppModelType , DbModelType >) => void ;
492
498
error? : (error : FirestoreError ) => void ;
493
499
complete? : () => void ;
494
500
}, converter ? : FirestoreDataConverter <DbModelType >): Unsubscribe ;
495
501
496
502
// @public
497
- export function onSnapshot <AppModelType , DbModelType extends DocumentData >(firestore : Firestore , snapshotJson : object , options : SnapshotListenOptions , observer : {
503
+ export function onSnapshotResume <AppModelType , DbModelType extends DocumentData >(firestore : Firestore , snapshotJson : object , options : SnapshotListenOptions , observer : {
498
504
next: (snapshot : QuerySnapshot <AppModelType , DbModelType >) => void ;
499
505
error? : (error : FirestoreError ) => void ;
500
506
complete? : () => void ;
501
507
}, converter ? : FirestoreDataConverter <DbModelType >): Unsubscribe ;
502
508
503
509
// @public
504
- export function onSnapshot <AppModelType , DbModelType extends DocumentData >(firestore : Firestore , snapshotJson : object , options : SnapshotListenOptions , observer : {
510
+ export function onSnapshotResume <AppModelType , DbModelType extends DocumentData >(firestore : Firestore , snapshotJson : object , options : SnapshotListenOptions , observer : {
505
511
next: (snapshot : DocumentSnapshot <AppModelType , DbModelType >) => void ;
506
512
error? : (error : FirestoreError ) => void ;
507
513
complete? : () => void ;
@@ -658,10 +664,15 @@ export class QuerySnapshot<AppModelType = DocumentData, DbModelType extends Docu
658
664
readonly metadata: SnapshotMetadata ;
659
665
readonly query: Query <AppModelType , DbModelType >;
660
666
get size(): number ;
661
- // (undocumented)
662
667
toJSON(): object ;
663
668
}
664
669
670
+ // @public
671
+ export function querySnapshotFromJSON(db : Firestore , json : object ): QuerySnapshot ;
672
+
673
+ // @public
674
+ export function querySnapshotFromJSON<AppModelType , DbModelType extends DocumentData = DocumentData >(db : Firestore , json : object , converter : FirestoreDataConverter <AppModelType , DbModelType >): QuerySnapshot <AppModelType , DbModelType >;
675
+
665
676
// @public
666
677
export class QueryStartAtConstraint extends QueryConstraint {
667
678
readonly type: ' startAt' | ' startAfter' ;
0 commit comments