# @types/native-toast

> TypeScript definitions for native-toast

Latest version **2.0.5** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/native-toast
pnpm add @types/native-toast
yarn add @types/native-toast
bun add @types/native-toast
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 2.0.5 |
| Published | 2023-11-07 |
| First published | 2018-09-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51426 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/native-toast
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/native-toast
- npm.io page: https://npm.io/package/@types/native-toast

## Recent versions

- 2.0.5 (latest) — 2023-11-07
- 2.0.2 (ts3.6) — 2021-07-08
- 2.0.1 (ts2.0) — 2019-03-12
- 2.0.4 — 2023-10-18
- 2.0.3 — 2023-09-23
- 2.0.0 — 2018-09-14

## README

# Installation
> `npm install --save @types/native-toast`

# Summary
This package contains type definitions for native-toast (https://github.com/egoist/native-toast).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/native-toast.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/native-toast/index.d.ts)
````ts
declare const toast: {
    (options: toast.ToastOptions): toast.Toast;
    success: (options: toast.ToastOptions) => toast.Toast;
    warning: (options: toast.ToastOptions) => toast.Toast;
    info: (options: toast.ToastOptions) => toast.Toast;
    error: (options: toast.ToastOptions) => toast.Toast;
};

export = toast;

declare namespace toast {
    interface ToastOptions {
        message?: string | undefined;
        position?:
            | "center"
            | "west"
            | "east"
            | "south"
            | "south-west"
            | "south-east"
            | "north"
            | "north-west"
            | "north-east"
            | undefined;
        timeout?: number | undefined;
        el?: HTMLElement | undefined;
        rounded?: boolean | undefined;
        type?: "success" | "warning" | "info" | "error" | undefined;
        debug?: boolean | undefined;
        edge?: boolean | undefined;
        icon?: boolean | undefined;
        closeOnClick?: boolean | undefined;
        elements?: HTMLElement[] | undefined;
    }

    interface Toast {
        show(): void;
        hide(): void;
        destroy(): void;
    }
}

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 09:09:39 GMT
 * Dependencies: none

# Credits
These definitions were written by [Michael Nahkies](https://github.com/mnahkies).

---
_Source: https://npm.io/package/@types/native-toast · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
