---
title: "debounce | Customer's Canvas On-Premises"
canonical: "https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/debounce/"
---

# debounce

> `void`

## Interfaces

### ~~Cancelable~~

#### Deprecated

#### Methods

##### ~~cancel()~~

```ts
cancel(): void;
```

###### Returns

##### ~~flush()~~

```ts
flush(): void;
```

###### Returns

`void`

## Type Aliases

### ~~DebouncedFunc~~

```ts
type DebouncedFunc<T> = T & Cancelable;
```

#### Type Parameters

| Type Parameter |
| ------ |
| `T` |

#### Deprecated

## Functions

### ~~debounce()~~

```ts
function debounce<T>(
   func, 
   wait, 
   options?): T & Cancelable;
```

This is copy a function of lodash. See docs lodash.debounce. Please do not use this outside Design Atoms.

#### Type Parameters

| Type Parameter |
| ------ |
| `T` *extends* (...`args`) => `any` |

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `func` | `T` |
| `wait` | `number` |
| `options?` | `DebounceSettings` |

#### Returns

`T` & [`Cancelable`](#cancelable)

#### Deprecated
