Skip to content

Commit

Permalink
fix: Add 'single' to typescript defs (#326)
Browse files Browse the repository at this point in the history
  • Loading branch information
duncte123 authored Nov 29, 2022
1 parent 74a8f7c commit be17c8b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
1 change: 1 addition & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export interface Options {
dismissible?: boolean;
pauseOnHover?: boolean;
closeOnClick?: boolean;
single?: boolean;
opacity?: number;
animate?: ToastAnimation;
appendTo?: Node;
Expand Down

0 comments on commit be17c8b

Please sign in to comment.