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