From 3ca3ab8f17c3221b52de0b4d23e5743b0361369b Mon Sep 17 00:00:00 2001 From: mertsincan Date: Thu, 2 Dec 2021 00:12:52 +0300 Subject: [PATCH] Fixed #1836 - For UseToast --- src/components/usetoast/UseToast.d.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/components/usetoast/UseToast.d.ts b/src/components/usetoast/UseToast.d.ts index 660d334ff..3bd1629e1 100644 --- a/src/components/usetoast/UseToast.d.ts +++ b/src/components/usetoast/UseToast.d.ts @@ -1,5 +1,3 @@ -export declare function useToast(): { - add(args:{ severity?: string, summary?: string, detail?: string, life?: number, closable?: boolean, group?: string }): void; - removeGroup(group: string): void; - removeAllGroups(): void; -} +import { ToastServiceMethods } from '../toastservice'; + +export declare function useToast(): ToastServiceMethods;