Wraps a value with metadata and type-safe getters.

**Signature:**

    export interface Value 

## Methods

| Method | Description |
|---|---|
| [asBoolean()](https://firebase.google.com/docs/reference/js/remote-config.value#valueasboolean) | Gets the value as a boolean.The following values (case-insensitive) are interpreted as true: "1", "true", "t", "yes", "y", "on". Other values are interpreted as false. |
| [asNumber()](https://firebase.google.com/docs/reference/js/remote-config.value#valueasnumber) | Gets the value as a number. Comparable to calling `Number(value) || 0`. |
| [asString()](https://firebase.google.com/docs/reference/js/remote-config.value#valueasstring) | Gets the value as a string. |
| [getSource()](https://firebase.google.com/docs/reference/js/remote-config.value#valuegetsource) | Gets the [ValueSource](https://firebase.google.com/docs/reference/js/remote-config#valuesource) for the given key. |

## Value.asBoolean()

Gets the value as a boolean.

The following values (case-insensitive) are interpreted as true: "1", "true", "t", "yes", "y", "on". Other values are interpreted as false.

**Signature:**

    asBoolean(): boolean;

**Returns:**

boolean

## Value.asNumber()

Gets the value as a number. Comparable to calling `Number(value) || 0`.

**Signature:**

    asNumber(): number;

**Returns:**

number

## Value.asString()

Gets the value as a string.

**Signature:**

    asString(): string;

**Returns:**

string

## Value.getSource()

Gets the [ValueSource](https://firebase.google.com/docs/reference/js/remote-config#valuesource) for the given key.

**Signature:**

    getSource(): ValueSource;

**Returns:**

[ValueSource](https://firebase.google.com/docs/reference/js/remote-config#valuesource)