Skip to content

Commit b442827

Browse files
chore: AggregateQuerySnapshot type update
1 parent 056f45c commit b442827

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

packages/firestore/lib/index.d.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -921,12 +921,16 @@ export namespace FirebaseFirestoreTypes {
921921
/**
922922
* The results of executing an aggregation query.
923923
*/
924-
export interface AggregateQuerySnapshot<T extends AggregateSpec> {
924+
export interface AggregateQuerySnapshot<
925+
AggregateSpecType extends AggregateSpec,
926+
AppModelType = DocumentData,
927+
DbModelType extends DocumentData = DocumentData,
928+
> {
925929
/**
926930
* The underlying query over which the aggregations recorded in this
927931
* `AggregateQuerySnapshot` were performed.
928932
*/
929-
get query(): Query<unknown>;
933+
get query(): Query<AppModelType, DbModelType>;
930934

931935
/**
932936
* Returns the results of the aggregations performed over the underlying
@@ -939,7 +943,7 @@ export namespace FirebaseFirestoreTypes {
939943
* @returns The results of the aggregations performed over the underlying
940944
* query.
941945
*/
942-
data(): AggregateSpecData<T>;
946+
data(): AggregateSpecData<AggregateSpecType>;
943947
}
944948

945949
/**

0 commit comments

Comments
 (0)