voluptasmollitia
Version:
Monorepo for the Firebase JavaScript SDK
27 lines (16 loc) • 767 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@firebase/storage](./storage.md) > [useStorageEmulator](./storage.usestorageemulator.md)
## useStorageEmulator() function
Modify this `StorageService` instance to communicate with the Cloud Storage emulator.
<b>Signature:</b>
```typescript
export declare function useStorageEmulator(storage: StorageService, host: string, port: number): void;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| storage | [StorageService](./storage.storageservice.md) | The <code>StorageService</code> instance |
| host | string | The emulator host (ex: localhost) |
| port | number | The emulator port (ex: 5001) |
<b>Returns:</b>
void