-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(firebase-admin): fix docChanges prop/method issue while adding mo…
…re extensive typing Need to test with cloud, web, and older versions of Typescript (2.5.x?)
- Loading branch information
1 parent
56c5c12
commit 8c1d77f
Showing
9 changed files
with
2,874 additions
and
2,801 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,23 @@ | ||
import * as typesWeb from '@firebase/firestore-types'; | ||
import { firestore as typesCloud } from 'firebase-admin'; | ||
|
||
import * as FirestoreWeb from '@firebase/firestore-types'; | ||
import '@google-cloud/firestore/types/firestore'; | ||
export namespace firestore { | ||
export interface CollectionReference extends typesWeb.CollectionReference { } | ||
export interface DocumentChange extends typesWeb.DocumentChange { } | ||
export interface DocumentReference extends typesWeb.DocumentReference { } | ||
export interface DocumentSnapshot extends typesWeb.DocumentSnapshot { } | ||
export interface GeoPoint extends typesWeb.GeoPoint { } | ||
export interface Query extends typesWeb.Query { } | ||
export interface QuerySnapshot extends typesWeb.QuerySnapshot { } | ||
export interface WriteBatch extends typesWeb.WriteBatch { } | ||
export interface CollectionReference extends FirestoreWeb.CollectionReference { } | ||
export interface DocumentChange extends FirestoreWeb.DocumentChange { } | ||
export interface DocumentReference extends FirestoreWeb.DocumentReference { } | ||
export interface DocumentSnapshot extends FirestoreWeb.DocumentSnapshot { } | ||
export interface GeoPoint extends FirestoreWeb.GeoPoint { } | ||
export interface Query extends FirestoreWeb.Query { } | ||
export interface QuerySnapshot extends FirestoreWeb.QuerySnapshot { } | ||
export interface WriteBatch extends FirestoreWeb.WriteBatch { } | ||
export namespace cloud { | ||
export interface CollectionReference extends typesCloud.Query {} | ||
export interface CollectionReference extends FirebaseFirestore.CollectionReference {} | ||
export interface DocumentChange extends FirebaseFirestore.DocumentChange { } | ||
export interface DocumentReference extends FirebaseFirestore.DocumentReference { } | ||
export interface DocumentSnapshot extends FirebaseFirestore.DocumentSnapshot { } | ||
export interface GeoPoint extends FirebaseFirestore.GeoPoint { } | ||
export interface Query extends FirebaseFirestore.Query { } | ||
export interface QuerySnapshot extends FirebaseFirestore.QuerySnapshot { } | ||
export interface WriteBatch extends FirebaseFirestore.WriteBatch { } | ||
export interface WriteResult extends FirebaseFirestore.WriteResult { } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
import { firestore } from './firestore'; | ||
|
||
export interface QueryCriteria { | ||
center?: firestore.GeoPoint; | ||
center?: firestore.GeoPoint | firestore.cloud.GeoPoint; | ||
radius?: number; | ||
query?: (ref: firestore.CollectionReference) => firestore.Query; | ||
query?: (ref: firestore.CollectionReference | firestore.cloud.CollectionReference) => firestore.Query | firestore.cloud.Query; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.