I'm converting my React + Firebase project to Typescript.

This line used to work just fine on JS.

```
const todayTimestamp = firebase.firestore.Timestamp.fromDate(new Date());

```

But after converting to Typescript, I'm getting the following error:

```
const todayTimestamp = firebase.firestore.Timestamp.fromDate(new Date());

// Property 'Timestamp' does not exist on type '() => Firestore'.

```

[![enter image description here](https://i.stack.imgur.com/pT9Aj.png)](https://i.stack.imgur.com/pT9Aj.png)

**Note:** `firebase` is of type `firebase.app.App`

[![enter image description here](https://i.stack.imgur.com/NH4MH.png)](https://i.stack.imgur.com/NH4MH.png)

See firebase docs reference:

<https://firebase.google.com/docs/reference/js/firebase.firestore>

[![enter image description here](https://i.stack.imgur.com/IKzmX.png)](https://i.stack.imgur.com/IKzmX.png)

It's like Typescript is not finding the types and classes for `firebase.firestore`. See what is available:

[![enter image description here](https://i.stack.imgur.com/xHzzv.png)](https://i.stack.imgur.com/xHzzv.png)

**QUESTION**

Is this a bug or am I doing something wrong?