Home > @firebase/storage > ref
ref() function
Returns a StorageReference for the given url.
Signature:
export declare function ref(storage: StorageService, url?: string): StorageReference;
Parameters
Parameter | Type | Description |
---|---|---|
storage | StorageService | StorageService instance. |
url | string | URL. If empty, returns root reference. |
Returns: