firebase / firebase/firebase-admin-node
[Firestore] Typescript error on date
オープン
api: firestore
needs-triage
- 主要言語
- TypeScript
- スター
- 1.7k
- フォーク
- 419
- 平均マージ
- 3日 10時間
- マージ済み PR(30日)
- 16
説明
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.
```
コントリビューションガイド
評価
この issue はまだ評価されていません。