Skip to content

Commit db4c5ea

Browse files
author
Brian Chen
committed
lint
1 parent 4371dbc commit db4c5ea

File tree

5 files changed

+22
-9
lines changed

5 files changed

+22
-9
lines changed

packages/firestore/src/api/database.ts

+1-4
Original file line numberDiff line numberDiff line change
@@ -610,10 +610,7 @@ class FirestoreDataConverter<U>
610610
if (!options) {
611611
return this._delegate.toFirestore(modelObject as U);
612612
} else {
613-
return this._delegate.toFirestore(
614-
modelObject as Partial<U>,
615-
options
616-
);
613+
return this._delegate.toFirestore(modelObject as Partial<U>, options);
617614
}
618615
}
619616

packages/firestore/src/exp/snapshot.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,10 @@ export interface FirestoreDataConverter<T>
9999
* Firestore database). Used with {@link (setDoc:1)}, {@link (WriteBatch.set:1)}
100100
* and {@link (Transaction.set:1)} with `merge:true` or `mergeFields`.
101101
*/
102-
toFirestore(modelObject: NestedPartialWithFieldValue<T>, options: SetOptions): DocumentData;
102+
toFirestore(
103+
modelObject: NestedPartialWithFieldValue<T>,
104+
options: SetOptions
105+
): DocumentData;
103106

104107
/**
105108
* Called by the Firestore SDK to convert Firestore data into an object of

packages/firestore/src/lite/snapshot.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,10 @@ export interface FirestoreDataConverter<T> {
9393
* Firestore database). Used with {@link @firebase/firestore/lite#(setDoc:1)}, {@link @firebase/firestore/lite#(WriteBatch.set:1)}
9494
* and {@link @firebase/firestore/lite#(Transaction.set:1)} with `merge:true` or `mergeFields`.
9595
*/
96-
toFirestore(modelObject: NestedPartialWithFieldValue<T>, options: SetOptions): DocumentData;
96+
toFirestore(
97+
modelObject: NestedPartialWithFieldValue<T>,
98+
options: SetOptions
99+
): DocumentData;
97100

98101
/**
99102
* Called by the Firestore SDK to convert Firestore data into an object of

packages/firestore/src/lite/user_data_reader.ts

+9-2
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,11 @@ import { Firestore } from './database';
6363
import { FieldPath } from './field_path';
6464
import { FieldValue } from './field_value';
6565
import { GeoPoint } from './geo_point';
66-
import { DocumentReference, NestedPartialWithFieldValue, WithFieldValue } from './reference';
66+
import {
67+
DocumentReference,
68+
NestedPartialWithFieldValue,
69+
WithFieldValue
70+
} from './reference';
6771
import { Timestamp } from './timestamp';
6872

6973
const RESERVED_FIELD_REGEX = /^__.*__$/;
@@ -74,7 +78,10 @@ const RESERVED_FIELD_REGEX = /^__.*__$/;
7478
*/
7579
export interface UntypedFirestoreDataConverter<T> {
7680
toFirestore(modelObject: WithFieldValue<T>): DocumentData;
77-
toFirestore(modelObject: NestedPartialWithFieldValue<T>, options: SetOptions): DocumentData;
81+
toFirestore(
82+
modelObject: NestedPartialWithFieldValue<T>,
83+
options: SetOptions
84+
): DocumentData;
7885
fromFirestore(snapshot: unknown, options?: unknown): T;
7986
}
8087

packages/firestore/test/lite/helpers.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,10 @@ export const postConverter = {
124124
};
125125

126126
export const postConverterMerge = {
127-
toFirestore(post: NestedPartialWithFieldValue<Post>, options?: SetOptions): DocumentData {
127+
toFirestore(
128+
post: NestedPartialWithFieldValue<Post>,
129+
options?: SetOptions
130+
): DocumentData {
128131
if (
129132
options &&
130133
((options as { merge: true }).merge ||

0 commit comments

Comments
 (0)