# Interfaz: Toast


Los toasts proporcionan una notificación breve al usuario.
Aparecen temporalmente y no deben interrumpir la experiencia del usuario.
Tampoco requieren la interacción del usuario para desaparecer.

**`Desde`**

0.2.0

## Métodos

### success

▸ **success**(`msg`): `void`

Muestra un mensaje toast de tipo éxito.

```typescript
ddClient.desktopUI.toast.success("message");
```

#### Parámetros

| Nombre | Tipo     | Descripción                       |
| :----- | :------- | :-------------------------------- |
| `msg`  | `string` | El mensaje a mostrar en el toast. |

#### Devuelve

`void`

---

### warning

▸ **warning**(`msg`): `void`

Muestra un mensaje toast de tipo advertencia.

```typescript
ddClient.desktopUI.toast.warning("message");
```

#### Parámetros

| Nombre | Tipo     | Descripción                             |
| :----- | :------- | :-------------------------------------- |
| `msg`  | `string` | El mensaje a mostrar en la advertencia. |

#### Devuelve

`void`

---

### error

▸ **error**(`msg`): `void`

Muestra un mensaje toast de tipo error.

```typescript
ddClient.desktopUI.toast.error("message");
```

#### Parámetros

| Nombre | Tipo     | Descripción                       |
| :----- | :------- | :-------------------------------- |
| `msg`  | `string` | El mensaje a mostrar en el toast. |

#### Devuelve

`void`

