firebase / firebase/firebase-admin-node

[Firestore] Typescript error on date

オープン
#1,965 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る
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 はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。