> For a complete documentation index, fetch https://docs.voximplant.ai/llms.txt

# WatchOptions (interface)

[Watchable](/api-reference/websdk5/core/watchable/overview)

**Methods**

* [guard](/api-reference/websdk5/core/watchable/watchoptions#guard)

**Properties**

* [clearable](/api-reference/websdk5/core/watchable/watchoptions#clearable)
* [immediate](/api-reference/websdk5/core/watchable/watchoptions#immediate)
* [once](/api-reference/websdk5/core/watchable/watchoptions#once)
* [signal](/api-reference/websdk5/core/watchable/watchoptions#signal)

## Methods

### guard

`guard(newValue: T, oldValue: T): boolean`

A function that returns a boolean to determine if the callback should be called.
The guard not set by default.

**Optional.**

**Since:** 5.1.0

**Parameters**

| Parameter  | Type | Requirement | Description |
| ---------- | ---- | ----------- | ----------- |
| `newValue` | `T`  | Required    |             |
| `oldValue` | `T`  | Required    |             |

**Returns:** boolean

## Properties

### clearable

`clearable?: boolean`

Whether the callback should be removed after calling the clear method. The default value is true.

**Optional.**

### immediate

`immediate?: boolean`

Whether the callback should be called immediately after being added. The default value is false.

**Optional.**

**Since:** 5.1.0

### once

`once?: boolean`

Whether the callback should be called only once. The default value is false.

**Optional.**

### signal

`signal?: AbortSignal`

An AbortSignal. The watch callback will be removed when the abort() method of the AbortController which owns the AbortSignal is called.
See [AbortController](https://developer.mozilla.org/en-US/docs/Web/API/AbortController) for details.

**Optional.**

**Since:** 5.1.0