Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/firestore/typescript.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ Firestore is a [`QuerySnapshot`](https://firebase.google.com/docs/reference/js/f
[`DocumentData`](https://firebase.google.com/docs/reference/js/firestore_.documentdata).

For a type safe application, this is dangerous. There are 2 ways to ensure your data
is returned type safe, either explicilty or inferred:
is returned type safe, either explicitly or inferred:

### Explcit types
### Explicit types

Provide the type declaration to the hooks directly:

Expand All @@ -36,7 +36,7 @@ useFirestoreDocumentData<Product>(); // Product | null

### Inferred types

The hooks will inferr any types from the provided reference, for example you could
The hooks will infer any types from the provided reference, for example you could
define [Firestore converters](https://firebase.google.com/docs/reference/js/firestore_.firestoredataconverter):

```ts
Expand Down