Home > @firebase/storage > getStorage
getStorage() function
Gets a Firebase StorageService instance for the given Firebase app.
Signature:
export declare function getStorage(app?: FirebaseApp, bucketUrl?: string): StorageService;
Parameters
Parameter | Type | Description |
---|---|---|
app | FirebaseApp | Firebase app to get Storage instance for. |
bucketUrl | string | The gs:// url to your Firebase Storage Bucket. If not passed, uses the app's default Storage Bucket. |
Returns:
A Firebase StorageService instance.