Skip to content

Commit b72c54d

Browse files
committed
fix lint complain
1 parent 7c0ff71 commit b72c54d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

packages/firestore/src/lite-api/aggregate.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@ import { LiteUserDataWriter } from './reference_impl';
3030
/**
3131
* An `AggregateField`that captures input type T.
3232
*/
33+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
3334
export class AggregateField<T> {
3435
type = 'AggregateField';
3536
}
3637

3738
/**
3839
* Creates and returns an aggregation field that counts the documents in the result set.
39-
*
4040
* @returns An `AggregateField` object with number input type.
4141
*/
4242
export function count(): AggregateField<number> {
@@ -54,7 +54,9 @@ type AggregateFieldType = ReturnType<typeof count>;
5454
* This is used as an argument to the "getter" functions, and the snapshot will
5555
* map the same names to the corresponding values.
5656
*/
57-
export type AggregateSpec = { [field: string]: AggregateFieldType };
57+
export interface AggregateSpec {
58+
[field: string]: AggregateFieldType;
59+
}
5860

5961
/**
6062
* A type whose keys are taken from an `AggregateSpec` type, and whose values

0 commit comments

Comments
 (0)