From f7cbb0645278cb1d0b024584ac33a0d9f0fde29f Mon Sep 17 00:00:00 2001 From: Nozarno <97676780+Nozarno@users.noreply.github.com> Date: Tue, 19 Mar 2024 15:11:13 +0100 Subject: [PATCH 1/2] Update 5-adding-mobile.md Editing the Typing to Fix a TypeScript Error --- versioned_docs/version-v7/vue/your-first-app/5-adding-mobile.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/versioned_docs/version-v7/vue/your-first-app/5-adding-mobile.md b/versioned_docs/version-v7/vue/your-first-app/5-adding-mobile.md index 4253e239d94..1f1f9364dbb 100644 --- a/versioned_docs/version-v7/vue/your-first-app/5-adding-mobile.md +++ b/versioned_docs/version-v7/vue/your-first-app/5-adding-mobile.md @@ -17,7 +17,7 @@ In the `savePicture` function, check which platform the app is running on. If it ```tsx const savePicture = async (photo: Photo, fileName: string): Promise => { - let base64Data: string; + let base64Data: string|Blob; // "hybrid" will detect mobile - iOS or Android if (isPlatform('hybrid')) { const file = await Filesystem.readFile({ From d4c796a69a258304c16b5b7593fef82aac37e472 Mon Sep 17 00:00:00 2001 From: Maria Hutt Date: Mon, 8 Apr 2024 10:17:08 -0700 Subject: [PATCH 2/2] docs(your-first-app): use correct type --- docs/react/your-first-app/5-adding-mobile.md | 2 +- docs/vue/your-first-app/5-adding-mobile.md | 2 +- .../version-v7/react/your-first-app/5-adding-mobile.md | 2 +- versioned_docs/version-v7/vue/your-first-app/5-adding-mobile.md | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/react/your-first-app/5-adding-mobile.md b/docs/react/your-first-app/5-adding-mobile.md index eef40b7a333..fa1799da9d1 100644 --- a/docs/react/your-first-app/5-adding-mobile.md +++ b/docs/react/your-first-app/5-adding-mobile.md @@ -14,7 +14,7 @@ First, we’ll update the photo saving functionality to support mobile. In the ` ```tsx const savePicture = async (photo: Photo, fileName: string): Promise => { - let base64Data: string; + let base64Data: string | Blob; // "hybrid" will detect Cordova or Capacitor; if (isPlatform('hybrid')) { const file = await Filesystem.readFile({ diff --git a/docs/vue/your-first-app/5-adding-mobile.md b/docs/vue/your-first-app/5-adding-mobile.md index 4253e239d94..61a1a51191d 100644 --- a/docs/vue/your-first-app/5-adding-mobile.md +++ b/docs/vue/your-first-app/5-adding-mobile.md @@ -17,7 +17,7 @@ In the `savePicture` function, check which platform the app is running on. If it ```tsx const savePicture = async (photo: Photo, fileName: string): Promise => { - let base64Data: string; + let base64Data: string | Blob; // "hybrid" will detect mobile - iOS or Android if (isPlatform('hybrid')) { const file = await Filesystem.readFile({ diff --git a/versioned_docs/version-v7/react/your-first-app/5-adding-mobile.md b/versioned_docs/version-v7/react/your-first-app/5-adding-mobile.md index eef40b7a333..fa1799da9d1 100644 --- a/versioned_docs/version-v7/react/your-first-app/5-adding-mobile.md +++ b/versioned_docs/version-v7/react/your-first-app/5-adding-mobile.md @@ -14,7 +14,7 @@ First, we’ll update the photo saving functionality to support mobile. In the ` ```tsx const savePicture = async (photo: Photo, fileName: string): Promise => { - let base64Data: string; + let base64Data: string | Blob; // "hybrid" will detect Cordova or Capacitor; if (isPlatform('hybrid')) { const file = await Filesystem.readFile({ diff --git a/versioned_docs/version-v7/vue/your-first-app/5-adding-mobile.md b/versioned_docs/version-v7/vue/your-first-app/5-adding-mobile.md index 1f1f9364dbb..61a1a51191d 100644 --- a/versioned_docs/version-v7/vue/your-first-app/5-adding-mobile.md +++ b/versioned_docs/version-v7/vue/your-first-app/5-adding-mobile.md @@ -17,7 +17,7 @@ In the `savePicture` function, check which platform the app is running on. If it ```tsx const savePicture = async (photo: Photo, fileName: string): Promise => { - let base64Data: string|Blob; + let base64Data: string | Blob; // "hybrid" will detect mobile - iOS or Android if (isPlatform('hybrid')) { const file = await Filesystem.readFile({