From be17c8bd9215a3a13dc89bd3b5ddeab8b5b0a157 Mon Sep 17 00:00:00 2001 From: Duncan Sterken Date: Tue, 29 Nov 2022 13:30:28 +0100 Subject: [PATCH] fix: Add 'single' to typescript defs (#326) --- README.md | 1 + index.d.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/README.md b/README.md index a72de00..4af0cc9 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,7 @@ The plugin comes with the following options: - `position`: Position where the notification will be shown. The default is `top-right`, so if you want it to be on the top-left just add `top-left` to this option. The available options are: `top-left`, `top-center`, `top-right`, `center`, `bottom-left`, `bottom-center`, and `bottom-right`. - `dismissible`: Whether the notification will have a close button or not. Default is `false`. - `pauseOnHover`: Pauses delay when hovering the notification. Default is `false`. +- `single`: Only show a single toast in `appendTo`. Default is `false`. - `closeOnClick`: Dismisses the notification when clicked. Default is `true`. - `opacity`: The notification's container opacity. Default is `1`. - `animate`: [See here](#animate). Default is no animations. diff --git a/index.d.ts b/index.d.ts index 9aadc22..50cd92f 100644 --- a/index.d.ts +++ b/index.d.ts @@ -12,6 +12,7 @@ export interface Options { dismissible?: boolean; pauseOnHover?: boolean; closeOnClick?: boolean; + single?: boolean; opacity?: number; animate?: ToastAnimation; appendTo?: Node;