<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@firebase/remote-config](./remote-config.md) &gt; [getString](./remote-config.getstring.md)

## getString() function

Gets the value for the given key as a string. Convenience method for calling <code>remoteConfig.getValue(key).asString()</code>.

<b>Signature:</b>

```typescript
export declare function getString(remoteConfig: RemoteConfig, key: string): string;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  remoteConfig | [RemoteConfig](./remote-config.remoteconfig.md) | The <code>RemoteConfig</code> instance. |
|  key | string | The name of the parameter. |

<b>Returns:</b>

string

The value for the given key as a string.

