voluptasmollitia
Version:
Monorepo for the Firebase JavaScript SDK
26 lines (15 loc) • 781 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@firebase/storage](./storage.md) > [ref](./storage.ref_1.md)
## ref() function
Returns a StorageReference for the given path in the default bucket.
<b>Signature:</b>
```typescript
export declare function ref(storageOrRef: StorageService | StorageReference, path?: string): StorageReference;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| storageOrRef | [StorageService](./storage.storageservice.md) \| [StorageReference](./storage.storagereference.md) | <code>StorageService</code> or <code>StorageReference</code>. |
| path | string | |
<b>Returns:</b>
[StorageReference](./storage.storagereference.md)