Skip to content

Commit

Permalink
Fixed #1836 - For ToastService
Browse files Browse the repository at this point in the history
  • Loading branch information
mertsincan committed Dec 1, 2021
1 parent 46bc77b commit 7832b3a
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions src/components/toastservice/ToastService.d.ts
Original file line number Diff line number Diff line change
@@ -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' {
Expand Down

0 comments on commit 7832b3a

Please sign in to comment.