Fixed #1836 - For ToastService

pull/1846/head
mertsincan 2021-12-02 00:02:48 +03:00
parent 46bc77b0cd
commit 7832b3ac0b
1 changed files with 17 additions and 5 deletions

View File

@ -1,12 +1,24 @@
import Vue, { Plugin } from 'vue';
import { Plugin } from 'vue';
import { ToastMessageOptions } from '../toast';
declare const plugin: Plugin;
export default plugin;
interface ToastServiceMethods {
add(message: any): any;
removeGroup(group: any): void;
removeAllGroups(): void;
export interface ToastServiceMethods {
/**
* Displays the message in a suitable Toast component.
* @param {ToastMessageOptions} message - Message instance.
*/
add: (message: ToastMessageOptions) => void;
/**
* Clears the messages that belongs to the group.
* @param {string} group - Name of the message group.
*/
removeGroup: (group: string) => void;
/**
* Clears all the messages.
*/
removeAllGroups: () => void;
}
declare module 'vue/types/vue' {