1
1
import { ComponentOptionsMixin } from 'vue' ;
2
+ import { ComponentProvideOptions } from 'vue' ;
2
3
import { DefineComponent } from 'vue' ;
3
4
import { ExtractPropTypes } from 'vue' ;
4
5
import { HTMLAttributes } from 'vue' ;
@@ -16,7 +17,7 @@ export declare type NotificationItem = Pick<NotificationsOptions, 'id' | 'title'
16
17
duplicates : number ;
17
18
} ;
18
19
19
- export declare const Notifications : DefineComponent < {
20
+ export declare const Notifications : DefineComponent < ExtractPropTypes < {
20
21
group : {
21
22
type : StringConstructor ;
22
23
default : string ;
@@ -97,7 +98,7 @@ dangerouslySetInnerHtml: {
97
98
type : BooleanConstructor ;
98
99
default : boolean ;
99
100
} ;
100
- } , ( ) => JSX . Element , unknown , { } , { } , ComponentOptionsMixin , ComponentOptionsMixin , {
101
+ } > , ( ) => JSX . Element , { } , { } , { } , ComponentOptionsMixin , ComponentOptionsMixin , {
101
102
click : ( item : NotificationItem ) => true ;
102
103
destroy : ( item : NotificationItem ) => true ;
103
104
start : ( item : NotificationItem ) => true ;
@@ -182,18 +183,18 @@ dangerouslySetInnerHtml: {
182
183
type : BooleanConstructor ;
183
184
default : boolean ;
184
185
} ;
185
- } > > & {
186
+ } > > & Readonly < {
186
187
onClick ?: ( ( item : NotificationItem ) => any ) | undefined ;
187
188
onDestroy ?: ( ( item : NotificationItem ) => any ) | undefined ;
188
189
onStart ?: ( ( item : NotificationItem ) => any ) | undefined ;
189
- } , {
190
+ } > , {
190
191
speed : number ;
191
192
group : string ;
192
193
duration : number ;
193
194
ignoreDuplicates : boolean ;
194
195
closeOnClick : boolean ;
195
- reverse : boolean ;
196
196
width : string | number ;
197
+ reverse : boolean ;
197
198
position : string | string [ ] ;
198
199
classes : string | string [ ] ;
199
200
animationType : "css" | "velocity" ;
@@ -209,7 +210,7 @@ class: HTMLAttributes["class"];
209
210
item : NotificationItem ;
210
211
close : ( ) => void ;
211
212
} ) => any ;
212
- } > > ;
213
+ } > , { } , { } , string , ComponentProvideOptions , true , { } , any > ;
213
214
214
215
export declare interface NotificationsOptions {
215
216
id ?: number ;
0 commit comments