File tree Expand file tree Collapse file tree 3 files changed +33
-5
lines changed
packages/firebase-firestore Expand file tree Collapse file tree 3 files changed +33
-5
lines changed Original file line number Diff line number Diff line change @@ -361,7 +361,7 @@ export class DocumentSnapshot<T extends DocumentData = DocumentData> implements
361
361
}
362
362
363
363
data ( ) {
364
- return deserialize ( this . native . getData ( ) ) ;
364
+ return deserializeField ( this . native . getData ( ) ) ;
365
365
}
366
366
367
367
get < fieldType extends DocumentFieldType > ( fieldPath : string | number | FieldPath ) : fieldType {
@@ -730,7 +730,7 @@ export class QueryDocumentSnapshot<T extends DocumentData = DocumentData> extend
730
730
}
731
731
732
732
data ( ) {
733
- return deserialize ( this . #native. getData ( ) ) ;
733
+ return deserializeField ( this . #native. getData ( ) ) ;
734
734
}
735
735
736
736
get < fieldType extends DocumentFieldType > ( fieldPath : string | number | FieldPath ) : fieldType {
@@ -1245,6 +1245,13 @@ export class GeoPoint implements IGeoPoint {
1245
1245
get android ( ) {
1246
1246
return this . native ;
1247
1247
}
1248
+
1249
+ toString ( ) {
1250
+ return {
1251
+ latitude : this . latitude ,
1252
+ longitude : this . longitude
1253
+ }
1254
+ }
1248
1255
}
1249
1256
1250
1257
export class Timestamp implements ITimestamp {
@@ -1280,6 +1287,13 @@ export class Timestamp implements ITimestamp {
1280
1287
get android ( ) {
1281
1288
return this . native ;
1282
1289
}
1290
+
1291
+ toString ( ) {
1292
+ return {
1293
+ nanoseconds : this . nanoseconds ,
1294
+ seconds : this . seconds
1295
+ }
1296
+ }
1283
1297
}
1284
1298
1285
1299
export class WriteBatch implements IWriteBatch {
Original file line number Diff line number Diff line change @@ -304,7 +304,7 @@ export class DocumentSnapshot<T extends DocumentData = DocumentData> implements
304
304
}
305
305
306
306
data ( ) {
307
- return deserialize ( this . native . data ) ;
307
+ return deserializeField ( this . native . data ( ) ) ;
308
308
}
309
309
310
310
get < fieldType extends DocumentFieldType > ( fieldPath : string | number | FieldPath ) : fieldType {
@@ -652,7 +652,7 @@ export class QueryDocumentSnapshot<T extends DocumentData = DocumentData> extend
652
652
}
653
653
654
654
data ( ) {
655
- return deserialize ( this . #native. data ( ) ) ;
655
+ return deserializeField ( this . #native. data ( ) ) ;
656
656
}
657
657
658
658
get < fieldType extends DocumentFieldType > ( fieldPath : string | number | FieldPath ) : fieldType {
@@ -1092,6 +1092,13 @@ export class GeoPoint implements IGeoPoint {
1092
1092
get ios ( ) {
1093
1093
return this . native ;
1094
1094
}
1095
+
1096
+ toString ( ) {
1097
+ return {
1098
+ latitude : this . latitude ,
1099
+ longitude : this . longitude
1100
+ }
1101
+ }
1095
1102
}
1096
1103
1097
1104
export class Timestamp implements ITimestamp {
@@ -1127,6 +1134,13 @@ export class Timestamp implements ITimestamp {
1127
1134
get ios ( ) {
1128
1135
return this . native ;
1129
1136
}
1137
+
1138
+ toString ( ) {
1139
+ return {
1140
+ nanoseconds : this . nanoseconds ,
1141
+ seconds : this . seconds
1142
+ }
1143
+ }
1130
1144
}
1131
1145
1132
1146
export class WriteBatch implements IWriteBatch {
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @nativescript/firebase-firestore" ,
3
- "version" : " 1.0.0-alpha.4 " ,
3
+ "version" : " 1.0.0-alpha.5 " ,
4
4
"description" : " NativeScript Firebase - Firestore" ,
5
5
"main" : " index" ,
6
6
"typings" : " index.d.ts" ,
You can’t perform that action at this time.
0 commit comments