Skip to content
This repository was archived by the owner on Apr 4, 2023. It is now read-only.

Commit 2a43e43

Browse files
committed
Added Type definations to support geofirestore-js
1 parent a9edcae commit 2a43e43

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/firebase.d.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -786,6 +786,8 @@ export namespace firestore {
786786

787787
readonly path: string;
788788

789+
readonly firestore: firestore;
790+
789791
collection: (collectionPath: string) => CollectionReference;
790792

791793
set: (document: any, options?: SetOptions) => Promise<void>;
@@ -804,6 +806,8 @@ export namespace firestore {
804806
}
805807

806808
export interface Query {
809+
readonly firestore: firestore;
810+
807811
get(options?: GetOptions): Promise<QuerySnapshot>;
808812

809813
where(fieldPath: string, opStr: WhereFilterOp, value: any): Query;
@@ -816,11 +820,19 @@ export namespace firestore {
816820

817821
startAt(snapshot: DocumentSnapshot): Query;
818822

823+
startAt(...fieldValues: any[]): Query;
824+
819825
startAfter(snapshot: DocumentSnapshot): Query;
820826

827+
startAfter(...fieldValues: any[]): Query;
828+
821829
endAt(snapshot: DocumentSnapshot): Query;
822830

831+
endAt(...fieldValues: any[]): Query;
832+
823833
endBefore(snapshot: DocumentSnapshot): Query;
834+
835+
endBefore(...fieldValues: any[]): Query;
824836
}
825837

826838
export interface CollectionReference extends Query {

0 commit comments

Comments
 (0)