ionic-team / tutorial-photo-gallery-vue

Photo Gallery Tutorial: Ionic Vue and Capacitor
https://ionicframework.com/docs/vue/your-first-app
60 stars 43 forks source link

replace line convertBlobToBase64 (vue tutorial) with base64FromPath (react tutorial) #18

Open ulf1 opened 1 year ago

ulf1 commented 1 year ago

https://github.com/ionic-team/tutorial-photo-gallery-vue/blob/d7e0f0bdb3f4326f3cb0a2f4d6b374dfe9c682d1/src/composables/usePhotoGallery.ts#L64

Line 64 causes TS errors TS2352: Conversion of type 'void' to type 'string' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.

Cause: convertBlobToBase64 (https://github.com/ionic-team/tutorial-photo-gallery-vue/blob/main/src/composables/usePhotoGallery.ts#L37) doesn't specify string as promise output type

Fix: