forked from euvl/vue-notification
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.d.ts
38 lines (33 loc) · 848 Bytes
/
index.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
32
33
34
35
36
37
38
import { PluginFunction } from 'vue';
export interface NotificationOptions {
title?: string;
text?: string;
type?: string;
group?: string;
duration?: number;
speed?: number;
data?: object;
clean?: boolean;
width?: number | string;
classes?: string | [];
position?: string | [];
"animation-type"?: string;
"animation-name"?: string;
animation?: {};
max?: number;
reverse?: boolean;
ignoreDuplicates?: boolean;
closeOnClick?: boolean;
}
declare module 'vue/types/vue' {
interface Vue {
$notify: (options: NotificationOptions | string) => void;
}
interface VueConstructor {
notify: (options: NotificationOptions | string) => void;
}
}
declare class VueNotification {
static install: PluginFunction<any>;
}
export default VueNotification;