I'm trying to upload a base64 image with the new method putString. I already updated to 3.3 but TS says Property putString does not exist on type Reference (I'm using Angular 2 rc4)
firebase.storage().ref(storageUrl).putString(thumb64);
Well, I came up with a solution by myself. The problem is that even if firebase is upgraded to 3.3, its typings isn't. So either you wait for an official typings update or update it yourself by editing index.d.ts inside the firebase typings dir. Then go to the namespace firebase.storage object and add the putString method:
putString(string: String, format?:String, metadata?: firebase.storage.UploadMetadata): firebase.storage.UploadTask;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With