Home > @firebase/remote-config > getString
getString() function
Gets the value for the given key as a string. Convenience method for calling remoteConfig.getValue(key).asString()
.
Signature:
export declare function getString(remoteConfig: RemoteConfig, key: string): string;
Parameters
Parameter | Type | Description |
---|---|---|
remoteConfig | RemoteConfig | The RemoteConfig instance. |
key | string | The name of the parameter. |
Returns:
string
The value for the given key as a string.