Created ToastService.d.ts

pull/12/head
mertsincan 2019-05-30 11:27:21 +03:00
parent 7de9be3559
commit 81cb6e5475
2 changed files with 16 additions and 0 deletions

1
exports/toastservice.d.ts vendored Normal file
View File

@ -0,0 +1 @@
export * from './components/toast/ToastService';

15
src/components/toast/ToastService.d.ts vendored Normal file
View File

@ -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;
}
}