@@ -7,54 +7,86 @@ export class VueIzitoast {
77
88 static init ( Vue : Vue ) : void ;
99
10- public show ( message : string , title : string , options : VueIzitoastOptions ) : void ;
10+ public show ( message : string , title ? : string , options ? : VueIzitoastOptions ) : void ;
1111
12- public hide ( toast : string | HTMLDivElement | null , options : VueIzitoastOptions ) : void ;
12+ public hide ( toast : string | HTMLDivElement | null , options ? : VueIzitoastOptions ) : void ;
1313
14- public progress ( toast : string | HTMLDivElement | null , options : VueIzitoastOptions , callback : ( ) => void ) : void ;
14+ public progress ( toast : string | HTMLDivElement | null , options ? : VueIzitoastOptions , callback ? : ( ) => void ) : void ;
1515
1616 public destroy ( ) : void ;
1717
18- public info ( message : string , title : string , options : VueIzitoastOptions ) : void ;
18+ public info ( message : string , title ? : string , options ? : VueIzitoastOptions ) : void ;
1919
20- public success ( message : string , title : string , options : VueIzitoastOptions ) : void ;
20+ public success ( message : string , title ? : string , options ? : VueIzitoastOptions ) : void ;
2121
22- public warning ( message : string , title : string , options : VueIzitoastOptions ) : void ;
22+ public warning ( message : string , title ? : string , options ? : VueIzitoastOptions ) : void ;
2323
24- public error ( message : string , title : string , options : VueIzitoastOptions ) : void ;
24+ public error ( message : string , title ? : string , options ? : VueIzitoastOptions ) : void ;
2525
26- public question ( message : string , title : string , options : VueIzitoastOptions ) : void ;
26+ public question ( message : string , title ? : string , options ? : VueIzitoastOptions ) : void ;
2727
2828 public on < CB > ( eventName : string , callback : CB ) : void ;
2929
3030 public off < CB > ( eventName : string , callback : CB ) : void ;
3131}
3232
3333export interface VueIzitoastOptions {
34- zindex : number ;
35- layout : number ;
36- balloon : boolean ;
37- close : boolean ;
38- closeOnEscape : boolean ;
39- rtl : boolean ;
40- position : string ;
41- timeout : number ;
42- animateInside : boolean ;
43- drag : boolean ;
44- pauseOnHover : boolean ;
45- resetOnHover : boolean ;
46- transitionIn : string ;
47- transitionOut : string ;
48- transitionInMobile : string ;
49- transitionOutMobile : string ;
50- buttons : unknown ;
51- inputs : unknown ;
52- onOpening : ( ) => void ;
53- onOpened : ( ) => void ;
54- onClosing : ( ) => void ;
55- onClosed : ( ) => void ;
34+ animateInside ?: boolean ;
35+ backgroundColor ?: string ;
36+ balloon ?: boolean ;
37+ buttons ?: object ;
38+ class ?: string ;
39+ close ?: boolean ;
40+ closeOnClick ?: boolean ;
41+ closeOnEscape ?: boolean ;
42+ color ?: string ;
43+ displayMode ?: string ;
44+ drag ?: boolean ;
45+ icon ?: string ;
46+ iconColor ?: string ;
47+ iconText ?: string ;
48+ iconUrl ?: string ;
49+ id ?: string ;
50+ image ?: string ;
51+ imageWidth ?: number ;
52+ inputs ?: object ;
53+ layout ?: number ;
54+ maxWidth ?: number ;
55+ message ?: string ;
56+ messageColor ?: string ;
57+ messageLineHeight ?: number ;
58+ messageSize ?: string ;
59+ overlay ?: boolean ;
60+ overlayClose ?: boolean ;
61+ overlayColor ?: boolean ;
62+ pauseOnHover ?: boolean ;
63+ position ?: string ;
64+ progressBar ?: boolean ;
65+ progressBarColor ?: string ;
66+ progressBarEasing ?: string ;
67+ resetOnHover ?: boolean ;
68+ rtl ?: boolean ;
69+ target ?: string ;
70+ targetFirst ?: boolean ;
71+ theme ?: string ;
72+ timeout ?: number ;
73+ titleColor ?: string ;
74+ titleLineHeight ?: string ;
75+ titleSize ?: string ;
76+ transitionIn ?: string ;
77+ transitionInMobile ?: string ;
78+ transitionOut ?: string ;
79+ transitionOutMobile ?: string ;
80+ zindex ?: number ;
81+
82+ onOpening ?: ( ) => void ;
83+ onOpened ?: ( ) => void ;
84+ onClosing ?: ( ) => void ;
85+ onClosed ?: ( ) => void ;
5686}
5787
88+ export const install : PluginFunction < { } > ;
89+
5890// https://vuejs.org/v2/guide/typescript.html#Augmenting-Types-for-Use-with-Plugins
5991declare module 'vue/types/vue' {
6092 interface Vue {
0 commit comments