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;