From 81cb6e5475b3d8fa972bcdf25ed6ffd6d1c04035 Mon Sep 17 00:00:00 2001 From: mertsincan Date: Thu, 30 May 2019 11:27:21 +0300 Subject: [PATCH] Created ToastService.d.ts --- exports/toastservice.d.ts | 1 + src/components/toast/ToastService.d.ts | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 exports/toastservice.d.ts create mode 100644 src/components/toast/ToastService.d.ts diff --git a/exports/toastservice.d.ts b/exports/toastservice.d.ts new file mode 100644 index 000000000..82d62fb30 --- /dev/null +++ b/exports/toastservice.d.ts @@ -0,0 +1 @@ +export * from './components/toast/ToastService'; \ No newline at end of file diff --git a/src/components/toast/ToastService.d.ts b/src/components/toast/ToastService.d.ts new file mode 100644 index 000000000..aae540544 --- /dev/null +++ b/src/components/toast/ToastService.d.ts @@ -0,0 +1,15 @@ +import Vue, { PluginFunction } from 'vue'; + +export const install: PluginFunction<{}>; + +interface ToastServiceMethods { + add(message: any): any; + removeGroup(group: any): void; + removeAllGroups(): void; +} + +declare module 'vue/types/vue' { + interface Vue { + $toast: ToastServiceMethods; + } +} \ No newline at end of file