Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typos in Firestore / TypeScript doc #89

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
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