File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
packages/firestore/src/lite-api Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -30,13 +30,13 @@ import { LiteUserDataWriter } from './reference_impl';
30
30
/**
31
31
* An `AggregateField`that captures input type T.
32
32
*/
33
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
33
34
export class AggregateField < T > {
34
35
type = 'AggregateField' ;
35
36
}
36
37
37
38
/**
38
39
* Creates and returns an aggregation field that counts the documents in the result set.
39
- *
40
40
* @returns An `AggregateField` object with number input type.
41
41
*/
42
42
export function count ( ) : AggregateField < number > {
@@ -54,7 +54,9 @@ type AggregateFieldType = ReturnType<typeof count>;
54
54
* This is used as an argument to the "getter" functions, and the snapshot will
55
55
* map the same names to the corresponding values.
56
56
*/
57
- export type AggregateSpec = { [ field : string ] : AggregateFieldType } ;
57
+ export interface AggregateSpec {
58
+ [ field : string ] : AggregateFieldType ;
59
+ }
58
60
59
61
/**
60
62
* A type whose keys are taken from an `AggregateSpec` type, and whose values
You can’t perform that action at this time.
0 commit comments