Skip to content

Commit b19aebd

Browse files
committed
Explicitly type Firestore data converter in type tests
1 parent b82f2b6 commit b19aebd

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/firestore/test/unit/lite-api/types.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ import {
3333
FirestoreDataConverter,
3434
QueryDocumentSnapshot
3535
} from '../../../src/lite-api/snapshot';
36-
import { DocumentSnapshot } from '../../../src';
3736

3837
// A union type for testing
3938
type MyUnionType = string | number;
@@ -601,7 +600,7 @@ describe('FirestoreTypeConverter', () => {
601600
stringProperty: string;
602601
numberProperty: number;
603602
}
604-
const converter = {
603+
const converter: FirestoreDataConverter<MyModelType> = {
605604
toFirestore(
606605
modelObject: PartialWithFieldValue<MyModelType>,
607606
options?: SetOptions

0 commit comments

Comments
 (0)