@@ -2387,7 +2387,7 @@ firebase.firestore.get = (collectionPath: string, options?: firestore.GetOptions
23872387 return firebase . firestore . getCollection ( collectionPath , options ) ;
23882388} ;
23892389
2390- firebase . firestore . getDocument = ( collectionPath : string , documentPath : string , options ?: firestore . GetOptions ) : Promise < firestore . DocumentSnapshot > => {
2390+ firebase . firestore . getDocument = ( collectionPath : string , documentPath : string , options ?: firestore . GetOptions ) : Promise < DocumentSnapshot > => {
23912391 ensureFirestore ( ) ;
23922392 return new Promise ( ( resolve , reject ) => {
23932393 try {
@@ -2407,7 +2407,7 @@ firebase.firestore.getDocument = (collectionPath: string, documentPath: string,
24072407 if ( error ) {
24082408 reject ( error . localizedDescription ) ;
24092409 } else {
2410- resolve ( new firebase . firestore . DocumentSnapshot ( snapshot ) ) ;
2410+ resolve ( new DocumentSnapshot ( < any > snapshot ) ) ;
24112411 }
24122412 } ) ;
24132413
@@ -2555,7 +2555,7 @@ function convertDocChangeType(type: FIRDocumentChangeType) {
25552555}
25562556
25572557function convertDocument ( qDoc : FIRQueryDocumentSnapshot ) : firestore . QueryDocumentSnapshot {
2558- return new firebase . firestore . DocumentSnapshot ( qDoc ) ;
2558+ return < any > new DocumentSnapshot ( < any > qDoc ) ;
25592559}
25602560
25612561export class QuerySnapshot implements firestore . QuerySnapshot {
@@ -2574,7 +2574,7 @@ export class QuerySnapshot implements firestore.QuerySnapshot {
25742574 const docSnapshots : firestore . QueryDocumentSnapshot [ ] = [ ] ;
25752575 for ( let i = 0 , l = this . snapshot . documents . count ; i < l ; i ++ ) {
25762576 const document = this . snapshot . documents . objectAtIndex ( i ) ;
2577- docSnapshots . push ( new firebase . firestore . DocumentSnapshot ( document ) ) ;
2577+ docSnapshots . push ( < any > new DocumentSnapshot ( < any > document ) ) ;
25782578 }
25792579 this . _docSnapshots = docSnapshots ;
25802580
0 commit comments