voluptasmollitia
Version:
Monorepo for the Firebase JavaScript SDK
26 lines (15 loc) • 686 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@firebase/storage](./storage.md) > [ref](./storage.ref.md)
## ref() function
Returns a StorageReference for the given url.
<b>Signature:</b>
```typescript
export declare function ref(storage: StorageService, url?: string): StorageReference;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| storage | [StorageService](./storage.storageservice.md) | <code>StorageService</code> instance. |
| url | string | URL. If empty, returns root reference. |
<b>Returns:</b>
[StorageReference](./storage.storagereference.md)