You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We also infer the format of certain common object shapes, documented below:
285
+
286
+
### Firestore Timestamps
287
+
288
+
[Firestore Timestamps](https://firebase.google.com/docs/reference/node/firebase.firestore.Timestamp) are an object with two keys, `_seconds` and `_nanoseconds`:
289
+
290
+
```json
291
+
{
292
+
"_seconds": 1642533020,
293
+
"_nanoseconds": 932000000
294
+
}
295
+
```
296
+
297
+
Inferring this object will result in the following inferred type:
298
+
299
+
```json
300
+
{
301
+
"name": "object",
302
+
"value": {
303
+
"_seconds": 1642533020,
304
+
"_nanoseconds": 932000000
305
+
},
306
+
"format": {
307
+
"name": "firestoreTimestamp"
308
+
}
309
+
}
310
+
```
271
311
272
312
Please feel free to request additional formats by opening a [Github issue](https://github.com/jsonhero-io/json-infer-types/issues)
0 commit comments