vue-toast-notification
Advanced tools
Comparing version 3.0.3 to 3.0.4
{ | ||
"name": "vue-toast-notification", | ||
"version": "3.0.3", | ||
"version": "3.0.4", | ||
"description": "Vue.js toast notification plugin", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -17,4 +17,7 @@ import {Plugin} from 'vue' | ||
export interface ToastPropsWithMessage extends ToastProps { | ||
message: string; | ||
} | ||
export interface ToastProps { | ||
message: string, | ||
type?: ToastType | string, | ||
@@ -33,3 +36,3 @@ position?: ToastPosition, | ||
open(options: ToastProps): ActiveToast | ||
open(options: ToastPropsWithMessage): ActiveToast | ||
@@ -57,4 +60,4 @@ success(message: string, options?: ToastProps): ActiveToast | ||
export declare function useToast(globalProps?: ToastProps): ToastPluginApi | ||
export function useToast(globalProps?: Partial<ToastProps>): ToastPluginApi; | ||
export default ToastPlugin |
50640
589