File tree 5 files changed +22
-9
lines changed
5 files changed +22
-9
lines changed Original file line number Diff line number Diff line change @@ -610,10 +610,7 @@ class FirestoreDataConverter<U>
610
610
if ( ! options ) {
611
611
return this . _delegate . toFirestore ( modelObject as U ) ;
612
612
} else {
613
- return this . _delegate . toFirestore (
614
- modelObject as Partial < U > ,
615
- options
616
- ) ;
613
+ return this . _delegate . toFirestore ( modelObject as Partial < U > , options ) ;
617
614
}
618
615
}
619
616
Original file line number Diff line number Diff line change @@ -99,7 +99,10 @@ export interface FirestoreDataConverter<T>
99
99
* Firestore database). Used with {@link (setDoc:1)}, {@link (WriteBatch.set:1)}
100
100
* and {@link (Transaction.set:1)} with `merge:true` or `mergeFields`.
101
101
*/
102
- toFirestore ( modelObject : NestedPartialWithFieldValue < T > , options : SetOptions ) : DocumentData ;
102
+ toFirestore (
103
+ modelObject : NestedPartialWithFieldValue < T > ,
104
+ options : SetOptions
105
+ ) : DocumentData ;
103
106
104
107
/**
105
108
* Called by the Firestore SDK to convert Firestore data into an object of
Original file line number Diff line number Diff line change @@ -93,7 +93,10 @@ export interface FirestoreDataConverter<T> {
93
93
* Firestore database). Used with {@link @firebase/firestore/lite#(setDoc:1) }, {@link @firebase/firestore/lite#(WriteBatch.set:1) }
94
94
* and {@link @firebase/firestore/lite#(Transaction.set:1) } with `merge:true` or `mergeFields`.
95
95
*/
96
- toFirestore ( modelObject : NestedPartialWithFieldValue < T > , options : SetOptions ) : DocumentData ;
96
+ toFirestore (
97
+ modelObject : NestedPartialWithFieldValue < T > ,
98
+ options : SetOptions
99
+ ) : DocumentData ;
97
100
98
101
/**
99
102
* Called by the Firestore SDK to convert Firestore data into an object of
Original file line number Diff line number Diff line change @@ -63,7 +63,11 @@ import { Firestore } from './database';
63
63
import { FieldPath } from './field_path' ;
64
64
import { FieldValue } from './field_value' ;
65
65
import { GeoPoint } from './geo_point' ;
66
- import { DocumentReference , NestedPartialWithFieldValue , WithFieldValue } from './reference' ;
66
+ import {
67
+ DocumentReference ,
68
+ NestedPartialWithFieldValue ,
69
+ WithFieldValue
70
+ } from './reference' ;
67
71
import { Timestamp } from './timestamp' ;
68
72
69
73
const RESERVED_FIELD_REGEX = / ^ _ _ .* _ _ $ / ;
@@ -74,7 +78,10 @@ const RESERVED_FIELD_REGEX = /^__.*__$/;
74
78
*/
75
79
export interface UntypedFirestoreDataConverter < T > {
76
80
toFirestore ( modelObject : WithFieldValue < T > ) : DocumentData ;
77
- toFirestore ( modelObject : NestedPartialWithFieldValue < T > , options : SetOptions ) : DocumentData ;
81
+ toFirestore (
82
+ modelObject : NestedPartialWithFieldValue < T > ,
83
+ options : SetOptions
84
+ ) : DocumentData ;
78
85
fromFirestore ( snapshot : unknown , options ?: unknown ) : T ;
79
86
}
80
87
Original file line number Diff line number Diff line change @@ -124,7 +124,10 @@ export const postConverter = {
124
124
} ;
125
125
126
126
export const postConverterMerge = {
127
- toFirestore ( post : NestedPartialWithFieldValue < Post > , options ?: SetOptions ) : DocumentData {
127
+ toFirestore (
128
+ post : NestedPartialWithFieldValue < Post > ,
129
+ options ?: SetOptions
130
+ ) : DocumentData {
128
131
if (
129
132
options &&
130
133
( ( options as { merge : true } ) . merge ||
You can’t perform that action at this time.
0 commit comments