# @types/jquery-toast-plugin

> TypeScript definitions for jquery-toast-plugin

Latest version **1.3.7** (published 2024-11-02) · MIT license · 0 weekly downloads

## Install

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

## Health

**Score 55/100 (C)** — status: stable.

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

Warnings: low downloads; no esm support.

Negative: stale.

## Facts

| | |
|---|---|
| Version | 1.3.7 |
| Published | 2024-11-02 |
| First published | 2018-06-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 5.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51445 |
| Maintainers | types |

## Links

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

## Dependencies (1)

- [@types/jquery](https://npm.io/package/@types/jquery.md) *

## Recent versions

- 1.3.7 (latest) — 2024-11-02
- 1.3.6 (ts4.7) — 2023-11-07
- 1.3.3 (ts3.8) — 2021-07-08
- 1.3.2 (ts3.2) — 2019-02-13
- 1.3.5 — 2023-10-18
- 1.3.4 — 2023-09-15
- 1.3.1 — 2018-08-25
- 1.3.0 — 2018-06-22

## README

# Installation
> `npm install --save @types/jquery-toast-plugin`

# Summary
This package contains type definitions for jquery-toast-plugin (https://github.com/kamranahmedse/jquery-toast-plugin).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jquery-toast-plugin.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jquery-toast-plugin/index.d.ts)
````ts
/// <reference types="jquery"/>

interface JQueryStatic {
    toast(options: string | readonly string[] | toastOptions): void;
}

interface toastOptions {
    text: string | readonly string[];
    heading?: string | undefined;
    showHideTransition?: "fade" | "slide" | "plain" | undefined;
    allowToastClose?: boolean | undefined;
    hideAfter?: number | false | undefined;
    loader?: boolean | undefined;
    loaderBg?: string | undefined;
    stack?: number | false | undefined;
    position?:
        | "bottom-left"
        | "bottom-right"
        | "bottom-center"
        | "top-right"
        | "top-left"
        | "top-center"
        | "mid-center"
        | CustomPosition
        | undefined;
    bgColor?: string | undefined;
    textColor?: string | undefined;
    textAlign?: "left" | "right" | "center" | undefined;
    icon?: "info" | "warning" | "error" | "success" | undefined;
    beforeShow?: (() => any) | undefined;
    afterShown?: (() => any) | undefined;
    beforeHide?: (() => any) | undefined;
    afterHidden?: (() => any) | undefined;
}

interface CustomPosition {
    left: number | "auto";
    right: number | "auto";
    top: number | "auto";
    bottom: number | "auto";
}

````

### Additional Details
 * Last updated: Sat, 02 Nov 2024 06:37:16 GMT
 * Dependencies: [@types/jquery](https://npmjs.com/package/@types/jquery)

# Credits
These definitions were written by [Viqas Hussain](https://github.com/viqashussain), and [Andrew Stegmaier](https://github.com/astegmaier).

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