-
-
Notifications
You must be signed in to change notification settings - Fork 137
/
vue-tailwind.d.ts
31 lines (26 loc) · 1.32 KB
/
vue-tailwind.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import Vue, { VueConstructor } from 'vue';
import { DialogResponse } from './src/components/TDialog';
import { DialogOptions } from './src/utils/configureDialogGlobals';
import { InstallFunction } from './src';
declare module 'vue/types/vue' {
interface Vue {
$modal: Vue & {
show: (name: string, params?: { [k: string]: string }) => void;
hide: (name: string) => void;
};
$dialog: Vue & {
show: (name: string) => Promise<DialogResponse>;
hide: (name: string) => void;
alert: (titleOrDialogOptions: DialogOptions, text?: string, icon?: string) => Promise<DialogResponse>;
confirm: (titleOrDialogOptions: DialogOptions, text?: string, icon?: string) => Promise<DialogResponse>;
prompt: (titleOrDialogOptions: DialogOptions, text?: string, icon?: string) => Promise<DialogResponse>;
},
$alert: (titleOrDialogOptions: DialogOptions, text?: string, icon?: string) => Promise<DialogResponse>;
$confirm: (titleOrDialogOptions: DialogOptions, text?: string, icon?: string) => Promise<DialogResponse>;
$prompt: (titleOrDialogOptions: DialogOptions, text?: string, icon?: string) => Promise<DialogResponse>;
}
}
declare const VueTailwind: { install: InstallFunction };
export default VueTailwind;
export const VueTailwindSample: VueConstructor<Vue>;
export * from './src/index';