From 028a926a270389e614012198f1e2e8723600e972 Mon Sep 17 00:00:00 2001 From: Cagatay Civici Date: Wed, 25 Nov 2020 11:39:17 +0300 Subject: [PATCH] Fixed #645 - Type for useToast --- exports/useToast.d.ts | 1 + src/components/toast/useToast.d.ts | 1 + 2 files changed, 2 insertions(+) create mode 100644 exports/useToast.d.ts create mode 100644 src/components/toast/useToast.d.ts diff --git a/exports/useToast.d.ts b/exports/useToast.d.ts new file mode 100644 index 000000000..5c3c1cf18 --- /dev/null +++ b/exports/useToast.d.ts @@ -0,0 +1 @@ +export * from './components/toast/useToast'; \ No newline at end of file diff --git a/src/components/toast/useToast.d.ts b/src/components/toast/useToast.d.ts new file mode 100644 index 000000000..6854a0212 --- /dev/null +++ b/src/components/toast/useToast.d.ts @@ -0,0 +1 @@ +export declare function useToast(): { add(args:{ severity?: string, summary?: string, detail?: string, life?: number, closable?: boolean, group?: string }): void } \ No newline at end of file