<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@firebase/storage](./storage.md) &gt; [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

