From 7238d4bd6e5cd12385866218c9108f14c5b6326f Mon Sep 17 00:00:00 2001 From: Phaedrus Date: Fri, 3 Mar 2023 08:13:18 -0600 Subject: [PATCH 1/2] Fix a couple typos --- docs/firestore/typescript.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/firestore/typescript.mdx b/docs/firestore/typescript.mdx index 5b182ffe..80d3e0dd 100644 --- a/docs/firestore/typescript.mdx +++ b/docs/firestore/typescript.mdx @@ -17,7 +17,7 @@ Firestore is a [`QuerySnapshot`](https://firebase.google.com/docs/reference/js/f For a type safe application, this is dangerous. There are 2 ways to ensure your data is returned type safe, either explicilty or inferred: -### Explcit types +### Explicit types Provide the type declaration to the hooks directly: @@ -36,7 +36,7 @@ useFirestoreDocumentData(); // 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 From 4f4b1efb5fe6d979d51bd229661745a6e64b1a5f Mon Sep 17 00:00:00 2001 From: Phaedrus Date: Fri, 3 Mar 2023 08:15:41 -0600 Subject: [PATCH 2/2] Fix typo --- docs/firestore/typescript.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/firestore/typescript.mdx b/docs/firestore/typescript.mdx index 80d3e0dd..726c3dde 100644 --- a/docs/firestore/typescript.mdx +++ b/docs/firestore/typescript.mdx @@ -15,7 +15,7 @@ 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: ### Explicit types