firebase / firebase/firebase-admin-node
[Firestore] Typescript error on date
Abierto
api: firestore
needs-triage
- Lenguaje dominante
- TypeScript
- Estrellas
- 1.7k
- Forks
- 419
- Merge medio
- 3 d 10 h
- PR fusionados (30 d)
- 16
Descripción
My environment
* Operating System version: macOS Monterey
* Firebase SDK version: 11.2.0
* Firebase Product: Firestore
* Node.js version: v16.17.1
* NPM version: 8.19.2
#### Steps to reproduce:
Just request a document with a timestamp, and get the seconds on the object:
```js
data.entryDate.seconds
```
and I get this typescript error:
```js
Any
Property 'seconds' does not exist on type 'string'.
Translation: You're trying to access seconds on an object that doesn't contain it.
```
Guía de contribución
Evaluación
Este issue todavía no se ha evaluado.