From fd4fef76797b1fccce26237323bc52c8bd0abf43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tu=C4=9F=C3=A7e=20K=C3=BC=C3=A7=C3=BCko=C4=9Flu?= Date: Tue, 7 Mar 2023 11:00:59 +0300 Subject: [PATCH] ToastService .d.ts updated --- components/toastservice/ToastService.d.ts | 19 ++++++++++++++++--- pages/toast/index.vue | 2 +- 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/components/toastservice/ToastService.d.ts b/components/toastservice/ToastService.d.ts index 5b2aa17f3..dd9901263 100755 --- a/components/toastservice/ToastService.d.ts +++ b/components/toastservice/ToastService.d.ts @@ -1,24 +1,37 @@ +/** + * + * [Live Demo](https://www.primevue.org/toast/) + * + * @module toastservice + * + */ import { Plugin } from 'vue'; import { ToastMessageOptions } from '../toast'; declare const plugin: Plugin; export default plugin; +/** + * Toast Service methods. + * + * @group Interfaces + * + */ export interface ToastServiceMethods { /** * Displays the message in a suitable Toast component. * @param {ToastMessageOptions} message - Message instance. */ - add: (message: ToastMessageOptions) => void; + add(message: ToastMessageOptions): void; /** * Clears the messages that belongs to the group. * @param {string} group - Name of the message group. */ - removeGroup: (group: string) => void; + removeGroup(group: string): void; /** * Clears all the messages. */ - removeAllGroups: () => void; + removeAllGroups(): void; } declare module 'vue/types/vue' { diff --git a/pages/toast/index.vue b/pages/toast/index.vue index 9b986e9d4..db0e34d06 100755 --- a/pages/toast/index.vue +++ b/pages/toast/index.vue @@ -1,5 +1,5 @@