Skip to content

Commit 59b95af

Browse files
Interface Type Implementation Fix (#3358)
Co-authored-by: David East <[email protected]>
1 parent c169c67 commit 59b95af

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/compat/firestore/interfaces.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export type Query<T = DocumentData> = firebase.firestore.Query<T>;
1313
export type SetOptions = firebase.firestore.SetOptions;
1414
export type DocumentData = firebase.firestore.DocumentData;
1515

16-
export interface DocumentSnapshotExists<T> extends firebase.firestore.DocumentSnapshot {
16+
export interface DocumentSnapshotExists<T> extends firebase.firestore.DocumentSnapshot<T> {
1717
readonly exists: true;
1818
data(options?: SnapshotOptions): T;
1919
}
@@ -26,15 +26,15 @@ export interface DocumentSnapshotDoesNotExist extends firebase.firestore.Documen
2626

2727
export type DocumentSnapshot<T> = DocumentSnapshotExists<T> | DocumentSnapshotDoesNotExist;
2828

29-
export interface QueryDocumentSnapshot<T> extends firebase.firestore.QueryDocumentSnapshot {
29+
export interface QueryDocumentSnapshot<T> extends firebase.firestore.QueryDocumentSnapshot<T> {
3030
data(options?: SnapshotOptions): T;
3131
}
3232

33-
export interface QuerySnapshot<T> extends firebase.firestore.QuerySnapshot {
33+
export interface QuerySnapshot<T> extends firebase.firestore.QuerySnapshot<T> {
3434
readonly docs: QueryDocumentSnapshot<T>[];
3535
}
3636

37-
export interface DocumentChange<T> extends firebase.firestore.DocumentChange {
37+
export interface DocumentChange<T> extends firebase.firestore.DocumentChange<T> {
3838
readonly doc: QueryDocumentSnapshot<T>;
3939
}
4040

0 commit comments

Comments
 (0)